当前位置:网站首页>Submit local warehouse and synchronize code cloud warehouse

Submit local warehouse and synchronize code cloud warehouse

2022-04-23 17:47:00 Sanxiaochi 513

1. Open a new terminal

2. Check the status ( The new revision is red )

git status

3. Add all to staging area

git add .

4. Check the status again ( Will turn green )

git status

5. Submit to local warehouse

git commit -m " Descriptive text "

6. View branches

git branch

7. Switch to main branch master

git checkout master

8. Look at the branches again

git branch

9. Merging branches

git merge  Branches to merge 

10. Remote push

git push

Push new branches to the code cloud :

First switch to the branch to be pushed , How to execute the following commands

git push -u origin  Branch name 

版权声明
本文为[Sanxiaochi 513]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204230550325504.html