User Tools

Site Tools


devel:git-commit-guidelines

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
devel:git-commit-guidelines [2015/02/02 17:27]
miconda [Commit message]
devel:git-commit-guidelines [2016/11/14 22:22]
mslehto [Rename and commit file]
Line 3: Line 3:
 ===== GIT Repository Location ===== ===== GIT Repository Location =====
  
-Starting with December 15, 2014, the main GITH repository of Kamailio project is hosted on Github at:+Starting with December 15, 2014, the main GIT repository of Kamailio project is hosted on Github at:
  
   * https://github.com/kamailio/kamailio   * https://github.com/kamailio/kamailio
Line 315: Line 315:
 <code> <code>
 git push origin --delete <branchName> git push origin --delete <branchName>
 +</code>
 +
 +==== Revert already pushed commit ====
 +
 +This will produce a commit reverting the previous commit <hash>
 +
 +<code>
 +git revert <hash>
 +git push origin
 +</code>
 +
 +==== Rename and commit file ====
 +
 +Create minimal commit when renaming file
 +
 +<code>
 +git mv module.c module_mod.c
 +git commit -m '...: renamed module file to match recommended pattern' module.c module_mod.c
 </code> </code>
devel/git-commit-guidelines.txt ยท Last modified: 2018/10/24 22:33 by henningw