Gitの流れ
gitの運用ルールに関して備忘。
■最新のdevelopブランチに移動する
git checkout develop
git pull origin develop
■自分のブランチを作る
git checkout -b {自分のブランチ名:future}
■コミット
git add {対応してるファイル}
git commit -m "{コミット名}"
■コミットをまとめる
git rebase -i HEAD~{コミットを実行した回数}
■rebaseして最新のdevelopブランチのコミットを取得する
git pull --rebase origin develop
■pushを実行
git push origin {自分のブランチ名:future}
すでにリモートにプッシュしている場合は-fでコミット履歴を上書きできる。
(1merge1commitなどの運用ルールがある場合利用)
git push -f origin {自分のブランチ名:future}