Skip to content

Instantly share code, notes, and snippets.

@marknorgren
Created August 3, 2012 16:28
Show Gist options
  • Save marknorgren/3249215 to your computer and use it in GitHub Desktop.
Save marknorgren/3249215 to your computer and use it in GitHub Desktop.
add remote repo
#Setting up a public repository
##In the remote location create a bare repo:
git init bare
##In the local repo, add remote reference
git remote add ‘nameOfRemote’ ‘URL to remote’ //note if this is default remote use ‘origin’ for name
##Push your new local repo to this remote
git push --all
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment