to create a git remote branches

Create branches, download the project locally, and will be submitted to the local branch remote.

 

 

1, in this case your disk, looking for a folder is where you want to store the project, and then open the right git.

2, after opening Git, a new input command mkdir newtest folder newsconsole

 

 

 3. cd newconsole input commands into the file newsconsole

4, continue to enter the command git clone "your project address" after the carriage return will automatically download project

5, cd <project name> into your project inside

6.git branch -a can first check the local branch and remote branch

7. git checkout "primary branch" switch to the primary branch, because of the need to create a new branch in the main branch

 

 8, git pull it 

9, git branch "to your branch name," need to go to your own branch

10.git push origin <your branch name> Submit branches to remote branches

 

11. You can use .git branch -a view branch submitted its own success has not submitted

12, go on gitlab view, you have no branches on it

Guess you like

Origin www.cnblogs.com/shijiu1919/p/12167997.html