Search This Blog

Friday, 7 June 2013

git basics

The basic git workfow:

  1. Check the log:
     git log  
  2. What files have I changed:
     git diff --name-only  
    
  3. What has changed:
  4. git diff
    
  5. Commit the changes:
  6. git commit -a -m "text to describe this commit"
  7. Push it to the repo:
  8. git push origin