This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
devel:git-commit-guidelines [2015/11/23 13:09] linuxmaniac [Delete Remote Branch] |
devel:git-commit-guidelines [2016/11/14 22:22] mslehto [Rename and commit file] |
||
---|---|---|---|
Line 326: | Line 326: | ||
</ | </ | ||
+ | ==== Rename and commit file ==== | ||
+ | |||
+ | Create minimal commit when renaming file | ||
+ | |||
+ | < | ||
+ | git mv module.c module_mod.c | ||
+ | git commit -m '...: renamed module file to match recommended pattern' | ||
+ | </ |