This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
devel:git-commit-guidelines [2015/02/11 21:07] miconda [GIT Repository Location] |
devel:git-commit-guidelines [2016/11/14 22:22] mslehto [Rename and commit file] |
||
---|---|---|---|
Line 315: | Line 315: | ||
< | < | ||
git push origin --delete < | git push origin --delete < | ||
+ | </ | ||
+ | |||
+ | ==== Revert already pushed commit ==== | ||
+ | |||
+ | This will produce a commit reverting the previous commit < | ||
+ | |||
+ | < | ||
+ | git revert < | ||
+ | git push origin | ||
+ | </ | ||
+ | |||
+ | ==== 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' | ||
</ | </ |