User Tools

Site Tools


todo-git
no way to compare when less than two revisions

Differences

This shows you the differences between two versions of the page.


Previous revision
Next revision
todo-git [2012/10/19 01:09] dblume
Line 1: Line 1:
 +====== git ======
  
 +Make the clone at the remote repository.
 +
 +<code>
 +git clone git@github.com:dblume/get-shit-done
 +</code>
 +
 +<code>
 +git remote add upstream git://github.com/icambridge/get-shit-done
 +</code>
 +
 +Enter a comment for the commit.  See section 2.7.2 [[http://cworth.org/hgbook-git/tour/|here]].
 +<code>
 +git commit -a
 +</code>
 +
 +Double checking the alias names...
 +
 +<code>
 +$ git remote -v
 +origin  git@github.com:dblume/get-shit-done (fetch)
 +origin  git@github.com:dblume/get-shit-done (push)
 +upstream        git://github.com/icambridge/get-shit-done (fetch)
 +upstream        git://github.com/icambridge/get-shit-done (push)
 +</code>
 +
 +The push that worked from within the local directory:
 +
 +<code>
 +git push origin
 +</code>
 +
 +===== When it's time to commit =====
 +
 +Check which files are staged for commit with ''git status'' Then, when you're ready to commit locally,
 +
 +<code>
 +git commit -a -m "Some useful comment"
 +</code>
 +
 +When you're ready to push a local commit to a remote one...
 +
 +<code>
 +git push https://github.com/dblume/netflix-dvd-feed
 +</code>