- Copy
ghrepo.shto~/. - Setup permissions.
cd ~/
chmod +x ./ghrepo.sh- In
~/.bash_profile, add the following alias:
alias ghrepo=$HOME/ghrepo.sh - Install modified
ghandpackage-fieldtools:
npm install gh package-field -g
After restarting terminal:
#go to folder you want to push to GitHub
cd my-app
#make sure you are logged in before publishing (only needed once)
gh user --login
#push current folder to a new repo: gitusername/my-app
ghrepo