LoginSignup
0
0

More than 5 years have passed since last update.

gitで手元の状態を保持しつつpullしたい

Posted at

他人のソースをクローンしてきて、自分用のログ出力やコメントを入れることがよくある。
ソースの更新があった時にgit pullするが、追加した部分が衝突してしまったので、解決法のメモをしとく。

一旦退避させてpullした後に戻す

git stash save comment
git pull
git stash pop

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