Monday, November 1, 2010

Git basics

Upload it again: 'git push'
So, to have a successful work session do the following:
   Sit down at computer
   type 'git pull'
   make changes
   test your changes
   type 'git commit'
   describe your changes
   type 'git pull'
   type 'git push'
   Get up and walk away from the computer

You can type 'git pull' every minute, if you like.
You can type 'git commit -a' just after you've
made a change and
have tested it a little (Any syntax errors?
Does it run at all?).
You can type 'git push' after each commit; it has
no effect until then.


~$ git config --global user.email my@email.com
~$ git config --global user.name myusrname

No comments: