Skip to content

Instantly share code, notes, and snippets.

@mrcaron
Created October 22, 2009 20:16
Show Gist options
  • Save mrcaron/216262 to your computer and use it in GitHub Desktop.
Save mrcaron/216262 to your computer and use it in GitHub Desktop.
Git Push Existing script
#!/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