Difference between revisions of "Git cheat sheet"
From Simson Garfinkel
Jump to navigationJump to search
(Created page with "==Make a signed tag and push to github== git tag -u 'Simson L. Garfinkel <simsong@acm.org>' -s tcpflow-1.2.7 -m 'Release 1.2.7' git push --tags ==References== * http://l...") |
m |
||
Line 3: | Line 3: | ||
git push --tags | git push --tags | ||
==Pull changes== | |||
; from a forked repository's upstream: | |||
git fetch upstream # fetches any new changes from original repository | |||
git merge upstream/master # merges any changes fetched into your working files | |||
or | |||
git pull upstream | |||
git pull automatically merges changes. With fetch and merge, the changes are fetched and stored locally, then merged when you request. | |||
==References== | ==References== | ||
* http://learn.github.com/p/tagging.html | * http://learn.github.com/p/tagging.html | ||
* http://git.661346.n2.nabble.com/quot-secret-key-not-available-quot-quot-unable-to-sign-the-tag-quot-td1500685.html | * http://git.661346.n2.nabble.com/quot-secret-key-not-available-quot-quot-unable-to-sign-the-tag-quot-td1500685.html | ||
* https://help.github.com/articles/fork-a-repo |
Revision as of 06:41, 10 April 2013
Make a signed tag and push to github
git tag -u 'Simson L. Garfinkel <simsong@acm.org>' -s tcpflow-1.2.7 -m 'Release 1.2.7' git push --tags
Pull changes
- from a forked repository's upstream
git fetch upstream # fetches any new changes from original repository git merge upstream/master # merges any changes fetched into your working files
or
git pull upstream
git pull automatically merges changes. With fetch and merge, the changes are fetched and stored locally, then merged when you request.