- リモートブランチをローカルに取得してチェックアウト
git checkout -t -b branch_name origin/branch_name
- 直前コミットの author を修正
git commit --amend --author="Your Name <[email protected]>"
- git push の時に、自動的に現在のブランチが対象になるようにする
git config --global push.default current
- リモートブランチの削除
git push --delete origin branch_name
- コマンドのエイリアスを設定する (checkout => co の例)
git config --global alias.co checkout
- アップストリームの確認と設定
git branch -vv
git push -u [origin branch_name]
or
git branch --set-upstream-to=origin/branch_name branch_name