Git 修正中のプログラムを別ブランチでコミットする方法
git status
git statusで履歴を確認
git stash
git stashで修正中のプログラムを退避する
git checkout -b hoge
git checkout でブランチを作成する
git stash apply
git stash apply で退避したプログラムを戻す。
これでコミットしとけばOK。
git status
git statusで履歴を確認
git stash
git stashで修正中のプログラムを退避する
git checkout -b hoge
git checkout でブランチを作成する
git stash apply
git stash apply で退避したプログラムを戻す。
これでコミットしとけばOK。