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

Source: Internet
Author: User

When working on a project, it was much easier to work on features and bugs in isolation of the rest of the project. We can do the with GIT branches; A branch is a copy of the working directory, staging area, and project history; We create a branch, then check the it out and then add commits. After we feature have been built, we can then merge it back into the main stable branch-which are by master default. In this lesson we go-through how-to-create a branch git branch {branch-name} with, viewing-branches git branch with, switching branches with 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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.