Git Commands
git branch -vv | grep -v origin | awk '{print $1}' | xargs git branch -D
git branch | grep "<pattern>"
git branch | grep "<pattern>" | xargs git branch -d
reference
git remote update origin --prune
reference
git fetch --prune
git remote add JohnDao-Repo https://github.com/JohnDao/AwesomeProject.git
git fetch JohnDao-Repo
git merge JohnDao-Repo/issue-fix-branch-1
still need to create an empty repository on github manually.
-u is short for --set -upstream
echo "# TryDocFx" >> README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin https://github.com/ronsun/TryDocFx.git
git push -u origin master
git remote rm origin
git remote rm origin git@github.com:username/myapp.git