まだgit checkoutを使っていたので知識を更新する
使いそうなやつだけメモ
- git switch
git switch <branch>:ブランチ切り替えgit switch -c <branch>:ブランチ作成git switch -:一個前のブランチに戻る
- git restore
git restore <file>:ファイルを元に戻すgit restore --staged <file>:Staging状態のファイルを元に戻す
まだgit checkoutを使っていたので知識を更新する
使いそうなやつだけメモ
git switch <branch>:ブランチ切り替えgit switch -c <branch>:ブランチ作成git switch -:一個前のブランチに戻るgit restore <file>:ファイルを元に戻すgit restore --staged <file>:Staging状態のファイルを元に戻す