开发者

How to checkout and reset using smartgit?

Need help in understanding the below

1). How do i check out to a particular commit and again revert back to the recent commit ?

Tried branch->checkout->same branch and check out to the previous commit, but when i did this the commits made after the one i checked out now got lost !

Its not in the list to checkout to recent commit !

2). How do i reset my head to a part开发者_开发技巧icular commit ?


(1) Usually, branch refs won't be changed by a Check Out, so you may use Check Out again to switch back to your branch: simply select the corresponding branch for "Showing Branches" selector.

If the branch ref to your old head is actually lost, you can open the Log and use Query|Load All Commits to display all such heads, then add a temporary branch ref to the corresponding head and check out this head.

(2) Local|Reset should work for you.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜