0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

間違えてmasterで作業しちゃった(git stash)

Posted at

#stashで作業内容を退避

※落ち着いて現状を確認
git branch -a
git status

※作業内容を退避
git stash 

※もう一度確認 → 変更が戻ってる
git status

※ブランチを切る
git switch -c develop

※退避したものを反映
git stash apply

退避した一覧確認

git stash list

退避するものにメッセージをつける

git stash save "message"
0
0
0

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?