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 5 years have passed since last update.

Gitコマンド、一時退避編

Posted at
$ git stash save

退避

$ git stash save "コメント"

退避(メッセージ付き)

$ git stash list

退避した一覧を取得

$ git stash show -a stash@{0}

最初に退避された内容が表示される

$ git stash pop

退避していた内容を適用かつ退避データは削除される

$ git stash apply

退避していた内容を適用かつ退避データは残る

$ git stash drop

退避していた内容の削除

$ git stash clear

退避していた内容、全て消去される

$ git diff HEAD.. stash@{0}

退避していた内容と最新との差分確認

$ tig stash@{0}

退避内容とのこれまでの履歴閲覧

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?