项目从Git中Pull到本地

使用Git 提交和拉取代码:

 第一种:

1、初始化命令

git   init

2、 是否需要设置代理(若无需设置代理可以省略)

git  config  http.proxy  http://10.211.22.11:43

3、添加远程仓库

git  remote  add  origin   仓库地址
例如:https://codehub-cn-south.devcloud.huaweicloud.com/dx_fx00001/itim-ms-project-wh-kindstar.git

4、拉取仓库中文件

git  pull  origin  master  

 第二种:

1、git init

2、git  clone   <url>

 

可能遇到的问题:

Can't Update
No tracked branch configured for branch master or the branch doesn't exist.
To make your branch track a remote branch call, for example,
git branch --set-upstream-to=origin/master master (show balloon)


解决:执行   git branch --set-upstream-to=origin/master master

 

No versioned directories to update were found


使用IDEA  下载插件   SVN  Disconnect   

按下图使用:

 

posted @ 2022-02-25 22:30  VNone  阅读(192)  评论(0)    收藏  举报