码迷,mamicode.com
首页 > 其他好文 > 详细

[Practical Git] Switching between current branch and last checkout branch

时间:2016-08-10 06:35:13      阅读:175      评论:0      收藏:0      [点我收藏+]

标签:

When working on a project, it is much easier to work on features and bugs in isolation of the rest of the project. We can do this with git branches; a branch is a copy of the working directory, staging area, and project history; we create a branch, then check it out, then add commits. After our feature has been built, we can then merge it back into the main stable branch - which is master by default. In this lesson we go over how to create a branch with git branch {branch-name}, viewing all branches with git branch, switching branches with git checkout plus a few helper commands.

 

To switch between current branch and last checkout branch:

git checkout -

 

[Practical Git] Switching between current branch and last checkout branch

标签:

原文地址:http://www.cnblogs.com/Answer1215/p/5755254.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!