Skip to content

Instantly share code, notes, and snippets.

@taylor
Created February 3, 2009 20:35
Show Gist options
  • Select an option

  • Save taylor/57732 to your computer and use it in GitHub Desktop.

Select an option

Save taylor/57732 to your computer and use it in GitHub Desktop.
Global setup:
Download and install Git
git config --global user.email EMAIL_ADDRESS
Next steps:
mkdir PROJECT_NAME
cd PROJECT_NAME
git init
touch README
git add README
git commit -m 'first commit'
git remote add origin git@github.com:USER/PROJECT_NAME.git
git push origin master
Existing Git Repo?
cd existing_git_repo
git remote add origin git@github.com:USER/PROJECT_NAME.git
git push origin master
You may also want to track the master branch for easy pull/push
git config branch.master.merge refs/heads/master
git config branch.master.remote origin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment