Yanor.net/
Wiki
Blog
GitHub
Sandbox
開始行:
* ファイルの修正を取り消す [#bd699d07]
*** ファイルの修正を取り消す [#w6bb9e14]
vi test.txt # (1) test.txtを修正する
git reset --hard HEAD # (2) (1)の修正を戻す
test.txt以外のファイルを...
*** 修正したファイルを元のファイルに戻す [#zd22c198]
vi test.txt # (1) test.txtを修正する
git checkout test.txt # (2) (1)の修正を戻す
終了行:
* ファイルの修正を取り消す [#bd699d07]
*** ファイルの修正を取り消す [#w6bb9e14]
vi test.txt # (1) test.txtを修正する
git reset --hard HEAD # (2) (1)の修正を戻す
test.txt以外のファイルを...
*** 修正したファイルを元のファイルに戻す [#zd22c198]
vi test.txt # (1) test.txtを修正する
git checkout test.txt # (2) (1)の修正を戻す
ページ名: