Git create a remote branch and submit the code to the remote branch

1 can create new branch in VS

 

2. You can view the case of the distal branch library by git branch -r command

These are red remote branch 

3. Create a new branch from an existing branch (such as from the master branch), create a dev branch (branch can not build such a build vs)

4. Establish a local link to the remote warehouse - so that the code can be submitted up

Using the command line

the Push git - the SET -upstream Origin dev   // dev name to create branched

The remote repository has been created branch and commit code

As shown in Fig remote repository has been created dev branch of the following codes uploaded go up there.

Guess you like

Origin www.cnblogs.com/LiChen19951127/p/11357190.html