todo-git
no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
Previous revisionNext revision | |||
— | todo-git [2012/10/19 01:09] – dblume | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== git ====== | ||
+ | Make the clone at the remote repository. | ||
+ | |||
+ | < | ||
+ | git clone git@github.com: | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | git remote add upstream git:// | ||
+ | </ | ||
+ | |||
+ | Enter a comment for the commit. | ||
+ | < | ||
+ | git commit -a | ||
+ | </ | ||
+ | |||
+ | Double checking the alias names... | ||
+ | |||
+ | < | ||
+ | $ git remote -v | ||
+ | origin | ||
+ | origin | ||
+ | upstream | ||
+ | upstream | ||
+ | </ | ||
+ | |||
+ | The push that worked from within the local directory: | ||
+ | |||
+ | < | ||
+ | git push origin | ||
+ | </ | ||
+ | |||
+ | ===== When it's time to commit ===== | ||
+ | |||
+ | Check which files are staged for commit with '' | ||
+ | |||
+ | < | ||
+ | git commit -a -m "Some useful comment" | ||
+ | </ | ||
+ | |||
+ | When you're ready to push a local commit to a remote one... | ||
+ | |||
+ | < | ||
+ | git push https:// | ||
+ | </ |