LoginSignup
0
0

More than 3 years have passed since last update.

gitでブランチ名を途中で変えたい時

Posted at

初めに

私のメモです。

1.現在のブランチ名で更新した内容に名前をつけて保存

$ git stash save "~"

2.ローカルリポジトリの更新 && 更新したいブランチ名を記載

$ git fetch && git checkout ~

3.保存したstashを適応し削除

git stash pop //popは削除で、applyは残す
0
0
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0