Skip to content

Instantly share code, notes, and snippets.

@iamkristian
Created May 3, 2012 10:24
How to setup git remote push
ssh [email protected]
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 [email protected]: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