Get the App
SLTechnology News&Howtos  ›  Servers  › 

How to use git to add branches and submit in Ubuntu system

Shulou Source: shulou.com Published: 2022-06-01 21:37:41 10月04日 Update

This article introduces how to use git in the Ubuntu system to add branches and submit, the content is very detailed, interested friends can refer to, hope to be helpful to you.

1. Git branch newbh, we create a new branch newbh.

2. Git branch, you can see the current branches.

3. Git checkout newbh, so we can switch to the newbh branch.

4. Git branch, which can be recognized by color has been switched to this branch.

5. Modify the file.

Git status

Git add-A

Then we add it to the hold zone.

6. Git commit-m ", and then we submit it to the local version library.

7. Git push-u orgin newbh, and then we can submit it to the remote warehouse. Git branch-a, view all branches.

On how to use git in the Ubuntu system to add branches and submit to share here, I hope the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.

Tags: Branches systems content more help good warehouse interests guys buddies files articles versions knowledge articles colors switching references Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Technology Apple Docker Huawei macOS