-
-
Save jessearmand/1105843 to your computer and use it in GitHub Desktop.
Shell shortcut to setup a Git repo with GitHub. Works with zsh or bash.
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
# Usage: new-github topfunky tidy_table | |
function new-github() { | |
git remote add origin [email protected]:$1/$2.git | |
git push origin master | |
git config branch.master.remote origin | |
git config branch.master.merge refs/heads/master | |
git config push.default current | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment