Git Development notes

Source: Internet
Author: User

Here we will record the GIT operations used in our actual work for you to learn:

① Create a branch:

When the new version is to be developed, a new branch is created based on the latest version. The procedure is as follows:

Create a local branch. Note: The local branch only exists. The remote repository has not been generated ]:

Switch to the new local branch:

[Description]: The above two operations can be combined with a command: git checkout-B cmd_v1.3.0

Finally push to remote:

Finally, go to the webpage and you will be able to see that this branch is created remotely:

② Delete a remote Branch:

Git branch-r-D origin/branch-name
Git push origin: branch-name

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.