Created
October 22, 2009 20:16
-
-
Save mrcaron/216262 to your computer and use it in GitHub Desktop.
Git Push Existing script
This file contains 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
#!/bin/bash | |
# use this script at the root directory of your local repo | |
# Input repo name and username | |
git remote add origin git@github.com:${2}/${1}.git | |
git push origin master |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment