Git locally creates a branch three-step approach to a remote repository

Source: Internet
Author: User

The command is as follows:

1: Locally created branch dev

[Email protected]/d/home/myself/symfony (master) $ git branch dev

2: The following is the submission of the local branch to the remote repository

[Email protected]/d/home/myself/symfony (master) $ Git push origin devtotal 0 (Delta 0), reused 0 (Delta 0) to [email prote Cted]:turingtd/symfony.git * [New branch]      Dev-Dev

3: Check out a few branches of the remote repository

[Email protected]/d/home/myself/symfony (master) $ git branch-a  dev* Master * Number represents your current branch  Remotes/origin/head- > Origin/master  remotes/origin/dev remote repository Dev branch  remotes/origin/master remote Repository Master Branch

This blog post is quite comprehensive: recommend http://blog.csdn.net/arkblue/article/details/9568249/

Git locally creates a branch three-step approach to a remote repository

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.