git checkout -b feature_branch_name
git push -u origin feature_branch_name
git branch -d the_local_branch
git push origin :the_remote_branch
git push origin --delete the_remote_branch
git fetch -p
git clone -b <remote_repo>
git remote -v
returns
> origin https://github.com/YOUR_USERNAME/YOUR_FORK.git (fetch)
> origin https://github.com/YOUR_USERNAME/YOUR_FORK.git (push)
git remote add upstream
returns
> origin https://github.com/YOUR_USERNAME/YOUR_FORK.git (fetch)
> origin https://github.com/YOUR_USERNAME/YOUR_FORK.git (push)
> upstream https://github.com/ORIGINAL_OWNER/ORIGINAL_REPOSITORY.git (fetch)
> upstream https://github.com/ORIGINAL_OWNER/ORIGINAL_REPOSITORY.git (push)
git fetch upstream
git checkout master
git merge upstream/master
git commit --amend
git log
git push <REMOTENAME> <LOCALBRANCHNAME>:<REMOTEBRANCHNAME>