Changes

Jump to navigation Jump to search
342 bytes added ,  08:53, 18 January 2016
no edit summary
Line 69: Line 69:  
== Set upstream branch ==
 
== Set upstream branch ==
 
git branch --set-upstream-to=origin/master
 
git branch --set-upstream-to=origin/master
 +
 +
== Change last commit ==
 +
git commit --amend
 +
 +
== Change older commit messages ==
 +
git rebase -i HEAD~n
 +
Replace pick with reword before each commit message you want to change.<br />
 +
Save and close the commit list file.<br />
 +
In each resulting commit file, type the new commit message, save the file, and close it.<br />
 +
git push --force
 +
 +
 +
    
== Cheat Sheet ==
 
== Cheat Sheet ==
 
http://wiki.herrerosolis.com/images/4/46/Git-cheat-sheet.pdf
 
http://wiki.herrerosolis.com/images/4/46/Git-cheat-sheet.pdf

Navigation menu