Created
September 15, 2016 22:12
-
-
Save jjosef/5c8131e270f8d60ffafc71146f1e6a68 to your computer and use it in GitHub Desktop.
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
# place in ~/.bashrc | |
# if on OSX put [ -r ~/.bashrc ] && source ~/.bashrc in ~/.bash_profile | |
function first_git() { | |
git init | |
git add -A :/ | |
git commit -m "first commit" | |
git remote add origin $1 | |
git push -u origin master | |
} | |
# Usage: first_git <remote_repo.git> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment