Skip to content

Instantly share code, notes, and snippets.

@iamkristian
Created May 3, 2012 10:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iamkristian/2584895 to your computer and use it in GitHub Desktop.
Save iamkristian/2584895 to your computer and use it in GitHub Desktop.
How to setup git remote push
ssh git@example.com
mkdir my_project.git
cd my_project.git
git init --bare
git-update-server-info # If planning to serve via HTTP
exit
#---
cd my_project
git init
git add *
git commit -m "My initial commit message"
git remote add origin git@example.com:my_project.git
git push -u origin master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment