
Untitled
By: a guest on
Apr 16th, 2012 | syntax:
None | size: 0.70 KB | hits: 12 | expires: Never
# Grab a fresh copy of a project (called a repository)
$ git clone git://github.com/jamiep/lbj_state_project.git
# Get the status of your current changes (VERY useful!)
$ git status
# Add a file (more importantly, its changes) to commit
# You can view what files you have changed using git status
$ git add some_file.rb
# Commit all the changes you have added
$ git commit -m "Put a short descriptive message here"
# Or, if you know vim/vi, leave out the -m
$ git commit
# Pull changes from repository
# This should be done BEFORE you push
# For best results, you should finish and commit your changes first
$ git pull origin master
# Push your commits to the repo
$ git push origin master