开发者

What is the equivalent of hg up -C in git

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜