In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-10 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article will explain in detail how to install git on the Linux system. The editor thinks it is very practical, so I share it with you for reference. I hope you can get something after reading this article.
Git is an open source distributed version control system that can effectively and quickly handle project version management from very small to very large.
About git: git is an open source distributed version control system that can effectively and quickly handle project version management from very small to very large.
Git is an open source version control software developed by Linus Torvalds to help manage Linux kernel development.
The biggest difference between distributed and centralized is that developers can submit it locally, and each developer copies a complete Git repository on the local machine through git clone.
Specific steps to install gitb on Linux system: prepare:
Need a github account of the world's largest same-sex dating site.
Open the terminal and install git: sudo apt install git
Configure git account
Git config-global user.name "user name of git"
Git config-global user.email "git mailbox"
Generate a key based on the user name and mailbox (the key will be used in this account)
Ssh-keygen-t rsa-C "git mailbox"
Next, just enter and see the following display, which indicates success.
Check the key in the directory just now
Copy the key, be careful not to copy the mailbox
Open the https://github.com/ website and log in to your account
Enter a title, then copy and paste your key
Check if ssh-T git@github.com is available
This means success.
Github upload and update project
Go back to the home page
It's best to copy it here.
Create a project directory and enter the
When we need to upload content to the new project respository, we need to initialize the git init of the directory we need to upload using the init command
Initialize a normal file into a file that can be linked to git
Link to the remote repository: where git remote add origin git@github.com:xxxxxxxxxxx/test0002.git just asked to copy
Write the files that need to be uploaded to the remote warehouse after add
(the path of the command is under the file path passed by init)
Submit the files after add to the local warehouse
Git commit-m "submitted information"
Synchronize the submitted content to github
git push-u original landlord
(if the file can be submitted normally, do not use mandatory mention; if the normal submission fails, you can try to force the submission.)
Mandatory submission: git push-u origin + master
(question: refuse to upload
Resolution: modifying configuration fil
1. Enter the .git directory of the current shared file, cd .git
two。 Edit config vim config
3. Change the url address to the ssh address of the project in github
4. Save and exit
5. Submit again, no need to enter account password)
Uploaded successfully
Update items that already exist on github (I don't have this project on my computer (I have deleted the project just now)
Clone the project on github to a local path
Git clone git project address
Then repeat the upload steps above
This is the end of the article on "how to install git in Linux system". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, please 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: 228
*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.