git 如何从 gitlab 中提取项目?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/37338930/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to pull a project from gitlab?
提问by HAMZA ASLAM
How do i pull a project in gitlab? Does pulling and cloning are the same functions? Please tell me I am very new to git.
我如何在 gitlab 中拉一个项目?拉取和克隆是一样的功能吗?请告诉我我对 git 很陌生。
回答by Bhargav Kumar R
Does pulling and cloning are the same functions?
拉取和克隆是一样的功能吗?
Pull and clone basically do the same thing of pulling code from the remote repository.
拉取和克隆基本上与从远程存储库中提取代码相同。
To download code for the first time along with the meta info about all
available branches we use clone`. Once the local clone is available,
we use pull to fetch the latest changes.
How do i pull a project in gitlab?
我如何在 gitlab 中拉一个项目?
You should supply the remote repository url(in http/ssh) to clone.
您应该提供要克隆的远程存储库 url(在 http/ssh 中)。
git clone https://github.com/libgit2/libgit2