In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
Editor to share with you how to use git clone in the git command, I believe most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!
When using git for version control, in order to get a copy of a project (copy), we need to know the address of the project repository (GitURL). Git can be used under many protocols, so GitURL may be preceded by ssh://,http (s): / /, git://, or just a user name (git will think this is a ssh address).
Gitclone usage of git command
Some repositories can be accessed through more than one protocol, for example, the source code of Git itself you can access using the git:// protocol:
Gitclonegit
It can also be accessed through the http protocol:
Gitclone
Git:// is fast and efficient, but sometimes you have to use http. For example, your company's firewall blocks your non-http access requests. If you execute either of the above two lines of command, you will see a new directory: 'git', which contains all the Git source code and history.
By default, Git removes the dropout of '.git' from the last directory name in "GitURL" as the directory name of the new clone project: (for example, .gitclone http://git.kernel.org/linux/kernel/git/torvalds/linux-2.6.git creates a directory called 'linux-2.6').
In addition, if you need a usage name and password to access a GitURL, you can add the user name before the GitURL, and add @ match between them to indicate a split, then execute the gitclone command, and git will prompt you for the password.
Gitclone example
Gitclonerobin.hu
This will be accessed as the robin.hu username and then press enter to execute the gitclone command, and git will prompt you for your password.
In addition, we can specify the branch name to be cloned with-b, such as
$gitclone-bmaster2../server.
Indicates that this branch is cloned with the name master2, and if-b is omitted, it means that the master branch is cloned.
The above is all the contents of the article "how to use git clone in the git command". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
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.