Showing posts with label git. Show all posts
Showing posts with label git. Show all posts

Thursday, July 9, 2015

git merge multiple commit to one


http://makandracards.com/makandra/527-squash-several-git-commits-into-a-single-commit

Tuesday, December 13, 2011

git discard changes to a file


git checkout -f -- "filename"
Note, there is a space between -- and "filename".

Other methods:
git checkout -f

=========================================
To discard local commits:

git reset --hard origin/master

Tuesday, December 6, 2011

git send-email

http://morefedora.blogspot.com/2009/02/configuring-git-send-email-to-use-gmail.html

http://felipec.wordpress.com/2009/10/25/git-send-email-tricks/