Created
May 3, 2012 10:24
How to setup git remote push
This file contains hidden or 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
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