第一步:查询仓库地址
1.登录码云Gitee
2.点击“我的码云”,下拉菜单中找到需要获取的项目,点击
3.在新打开的页面中点击“克隆/下载”,复制https中的地址


第二步:克隆代码(下载代码)
1.打开Visual Studio,打开团队资源管理器,
2.点击图中绿色插头样式的图标(房子图标右边)
3.点击“克隆”
4.第一个文本框输入上一步中复制的仓库地址
5.第二个文本框选择下载的源码的存放位置
6.下方的克隆按钮
7.在弹出的窗口中输入码云的账号(账号使用邮箱)和密码,点击确定



第三步:切换到开发分支
1.克隆完成后,打开团队资源管理器,点击主页(房子图标),点击分支
2.按照下图所示找到develop分支,双击该分支

3.再次点击主页(房子图标),点击同步,分支名称显示develop说明分支切换成功

操作说明
之前TFS中的签入,在码云中的操作为提交>全部提交并推送
之前TFS中的获取最新版本,在码云中的操作为拉取
码云的同步相当于同时执行了推送和拉取
其他情况
出现下图所示窗口,填写姓名后保存

出现下图提示,说明输入码云账号密码时错误,在windows凭据中修改码云账号密码即可



同步失败时,vs输出窗口出现下面的提示
Git failed with a fatal error.
unable to auto-detect email address (got 'zqzqx@LAPTOP-RRJ20AL1.(none)')
在在windows凭据中删除码云账号,在vs中重新同步,这时会弹出用户密码,重新输入码云的用户名(邮箱)和密码
同步失败时,vs输出窗口出现下面的提示
Remote: Powered by �[01;33mGITEE.COM �[0m[�[01;35mGNK-5.0�[0m]�[0m
Remote: error: GE007: Your push would publish a �[01;31mprivate email address�[0m.
Remote: You can make your email public or �[33mdisable this protection�[0m by visiting:
Remote: �[01;36m[图片]https://gitee.com/profile/emails�[0m
Remote: error: hook declined to update refs/heads/develop
Error: failed to push some refs to '[图片]https://gitee.com/nmglx/rl2.git'
发布到远程存储库时遇到错误: rejected develop -> develop (hook declined)
登录码云检查邮箱是否被设置为不公开

网友评论