git - upload items to the designated branch

1. Cloning Code

   git clone cloning address

 

2. Go to the folder - find the file you want to modify - modify and save

 

3. Under this folder : Right-click - choose Git Bash Here

    

 

 

 

4. Check local branch

   git branch -a

 

5. pull the remote to the local branch

   git checkout -b local branch name origin / remote branch name (such as submit to a remote test branch: git checkout -b test origin / test)

 

6. Go local branch

    git pull

 

7. Upload

    (1) first into the staging area: git add.

    (2) add Description: git commit -m "Description"

    (3) Finally push up: git push upload address branch name

 

Guess you like

Origin www.cnblogs.com/ljr210/p/11460549.html