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 [2015/09/04 09:22]
cyril [Switching master branch]
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>
 +
 +To split a commit: use ''rebase -i'', chose "edit", and reset the index to the commit before, and commit:
 +<code>
 +git reset --mixed @~
 +git add -p .
 +git commit
 </code> </code>
 ==== Archive generation ==== ==== Archive generation ====
software/git.1441358558.txt.gz · Last modified: 2015/09/04 09:22 by cyril
CC Attribution-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0