开发者

How to Unstage and Discard in a single command in git

In git,

to unstage a file git reset HEAD <filename> is used

to discard changes git checkout <filename> is used

I开发者_开发技巧s there a way to combine these two commands in one?


Try

git checkout HEAD <filename>
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜