Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Apr 16th, 2012  |  syntax: None  |  size: 0.70 KB  |  hits: 12  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # Grab a fresh copy of a project (called a repository)
  2. $ git clone git://github.com/jamiep/lbj_state_project.git
  3.  
  4. # Get the status of your current changes (VERY useful!)
  5. $ git status
  6.  
  7. # Add a file (more importantly, its changes) to commit
  8. # You can view what files you have changed using git status
  9. $ git add some_file.rb
  10.  
  11. # Commit all the changes you have added
  12. $ git commit -m "Put a short descriptive message here"
  13. # Or, if you know vim/vi, leave out the -m
  14. $ git commit
  15.  
  16. # Pull changes from repository
  17. # This should be done BEFORE you push
  18. # For best results, you should finish and commit your changes first
  19. $ git pull origin master
  20.  
  21. # Push your commits to the repo
  22. $ git push origin master