开发者

What is the equivalent of hg up -C in git

开发者 https://www.devze.com 2023-01-12 09:27 出处:网络
I want to get the current head of m开发者_JAVA百科y git repo destroying all changes made and erasing additional files in the working copy.I think that you are looking for something like this. Be caref

I want to get the current head of m开发者_JAVA百科y git repo destroying all changes made and erasing additional files in the working copy.


I think that you are looking for something like this. Be careful! This potentially erases things that you cannot get back.

git reset --hard

git clean -fx
0

精彩评论

暂无评论...
验证码 换一张
取 消