by shigemk2

当面は技術的なことしか書かない

git コマンドのいくつか

git rebase -i (コミットログを編集する)

git rebase -i HEAD~1(直前コミット変更)→修正内容は消える

git rebase -i HEAD~2(コミット圧縮)→修正内容は消えない

git commit --amend

git branch -d branchname ブランチ削除

git branch branchname ブランチ作成

git stash save

git co branchname