Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

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

2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

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.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report