sudo add-apt-repository ppa:git-core/ppa
sudo apt update
sudo apt install git
git commit --allow-empty -m "first empty commit"
git reset --soft HEAD~1
git rebase -i --root
First commit -> pick. Rest of commits -> squash
eval "$(ssh-agent -s)"
ssh-add ~/.ssh/key
$ gh repo create
? What would you like to do? Push an existing local repository to GitHub
? Path to local repository .
? Repository name nginx-upstream-example
? Description Playing with Nginx
? Visibility Public
✓ Created repository misTrasteos/nginx-upstream-example on GitHub
? Add a remote? Yes
? What should the new remote be called? origin
✓ Added remote git@github.com:misTrasteos/nginx-upstream-example.git
? Would you like to push commits from the current branch to the "origin"? Yes
✓ Pushed commits to git@github.com:misTrasteos/nginx-upstream-example.git