Skip to content

Instantly share code, notes, and snippets.

@adeleinr
Created April 16, 2010 05:39
Show Gist options
  • Save adeleinr/368063 to your computer and use it in GitHub Desktop.
Save adeleinr/368063 to your computer and use it in GitHub Desktop.
Github Cheatsheet
http://learn.github.com/
git merge orgin/master
git pull origin master
git push
git fetch origin (Fetch changes from origin Git server to master branch of local repository)
git merge origin/master (Merge changes from origin/master branch to master branch of local repository)
git pull origin master (Pull changes from origin Git server to master branch of local repository)
Global setup:
Download and install Git
git config —global user.name “Adelein Rodriguez”
git config —global user.email adeleinr@gmail.com
Next steps:
mkdir test
cd test
git init
touch README
git add README
git commit -m ‘first commit’
git remote add origin git@github.com:adeleinr/test.git
git push origin master
Existing Git Repo?
cd existing_git_repo
git remote add origin git@github.com:adeleinr/test.git
git push origin master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment