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.

Gitでstashする方法

Last updated at Posted at 2019-07-04
  • 環境
    • CentOS Linux release 7.6.1810 (Core)
    • git version 1.8.3.1
    • xfc4-terminal 0.8.7.4

ユーザを設定していない場合は設定する

ユーザを設定しないままstashすると怒られるので設定していない場合は設定する。

名前を付けてstashする

# お名前をつけてstashする
$ git stash save stash-name
Saved working directory and index state On branch-c: stash-name
HEAD is now at bf54b9a

# stashできたか確認する
$ git stash list
stash@{0}: On branch-c: stash-name

# 一応ローカルの変更がstashされてなくなったか確認する
$ git diff HEAD
$

stashを適用する

Gitでstashを適用する方法 - Qiita

参考

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?