In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly explains "how to update GIT repository using GIT command line interface", interested friends may wish to take a look. The method introduced in this paper is simple, fast and practical. Let Xiaobian take you to learn "How to update GIT repository using GIT command line interface"!
Update the GIT repository with the GIT command-line interface 1. Create a Gitee repository
Go to the Gitee homepage. Create a new warehouse
2. Use git clone git path
Use the git clone git path command to copy the online gitee repository locally
Note: Copy Yes If SSH connection is selected, gitee public key needs to be generated
Details can be viewed--Code Cloud Help Document
Steps to generate SSH public key, refer to code cloud help document for details
You can generate sshkeys by: ssh-keygen -t rsa -C "xxxxx@xxxxx.com" Generating public/private rsa key pair... 3 Enter to generate ssh key View your public key and add it to the code cloud (Gitee.com) SSH key Add address:https://gitee.com/profile/sshkeys)cat ~/.ssh/id_rsa.pubssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAASFC6eNtGpNGwstc... After adding, enter ssh -T git@gitee.com in Terminal if you return Welcome to Gitee.com, yourname! The addition is successful.
Add user ssh key Put the secret key in id_rsa.pub into the public key, click Add
3. edit project
Here is a new folder. Note: If you create an empty folder, gitee warehouse will not be displayed after price increase.
4.git add . (Add changes to staging area)
git add .
5. git commit -m "Update Description"
git commit -m "Create new folder"
6. git push origin master pushes local changes to master branch
git push origin master
Pull first, then push.
git pull origin master
git push origin master
Note: If there is an error in the figure below, code integration will be performed first.
git pull --rebase origin master After the merger is completed, you can push git push origin master. I believe you have a deeper understanding of "how to update GIT repository using GIT command line interface." You may wish to actually operate it! Here is the website, more related content can enter the relevant channels for inquiry, pay attention to us, continue to learn!
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.