Created
April 11, 2012 16:35
-
-
Save gsdevme/2360402 to your computer and use it in GitHub Desktop.
Git help... hopefully
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# create a local repo | |
git init | |
# create a remote repo | |
git --base init | |
# add a file to tracking | |
git add lemon.css | |
# add all files to tracking | |
git add . | |
# add a remote server origin to your local repo | |
git remote add origin SSH_USER@IP:REPO.git | |
# remove a remote server | |
git remote rm origin | |
# commit a file | |
git commit lemon.css | |
# commit all files | |
git commit -a | |
# push to remote server (master == branch) | |
git push origin master | |
# create a new branch | |
git branch orange | |
# delete a branch | |
git branch -d orange | |
# switch to a branch | |
git checkout orange | |
git checkout master | |
# see all branches | |
git branch -a | |
Oh wait, didnt notice that, its a mistake
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
git branch orange
- I usually dogit checkout orange
is there much difference that you know of?