Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
git pullファイルを変更しましたが、編集元のサーバーから変更せずにファイルを取得したいと考えています。サーバーからファイルをダウンロードしたり、ファイルの初期状態を元に戻したりするにはどうすればよいですか?
git pull
ファイルがステージングされたばかりの場合は、次のようにしてファイルのステージングを解除します。
git reset HEAD filename
次に、行った変更を破棄します。
git checkout -- filename
あなたはおそらくgitstashコマンドを探しています