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.
ローカル リポジトリでファイル pom.xml を削除しました。私が走るとき
$git fetch -v upstream
私は得る:
From <remote repo>: = [up to date] master -> upstream/master
単に完全に欠落しているファイルを git に強制的に更新させる方法はありますか?
削除git statusしたファイルを示す必要があります。
git status
Changes not staged for commit: deleted: path/to/myfile
今すぐそれgit checkout -- path/to/myfileを取り戻すためにしてください。
git checkout -- path/to/myfile