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
software:git [2016/01/28 22:00]
cyril [Editing commits]
software:git [2016/01/28 22:02] (current)
cyril [Editing commits]
Line 186: Line 186:
 </code> </code>
  
-Change author or date: use ```rebase -i```, chose "edit", and commit with:+Change author or date: use ''rebase -i'', chose "edit", and commit with:
 <code> <code>
 git commit --amend --author "Name <email-address>" --date "$(date -R)" git commit --amend --author "Name <email-address>" --date "$(date -R)"
 </code> </code>
  
-To split a commit: use ```rebase -i```, chose "edit", and reset the index to the commit before, and commit:+To split a commit: use ''rebase -i'', chose "edit", and reset the index to the commit before, and commit:
 <code> <code>
 git reset --mixed @~ git reset --mixed @~
software/git.1454018452.txt.gz ยท Last modified: 2016/01/28 22:00 by cyril
CC Attribution-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0