- Copy
ghrepo.sh
to~/
. - Setup permissions.
cd ~/
chmod +x ./ghrepo.sh
- In
~/.bash_profile
, add the following alias:
alias ghrepo=$HOME/ghrepo.sh
- Install modified
gh
andpackage-field
tools:
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