Androidstudiogitclone码云仓库

试用环境:

从码云仓库上下载代码,并与本地AS进行关联,提交更新代码

试用方法:

1 安装git(这个百度上很多,八成左右都能用)

2 本地编译工具Androidstudio

3码云用户,远程仓库中有代码。

为什么不写上传呢,因为进公司很多时候我不是首席开发,那时码云仓库已经有代码了。我们需要立马入手的是clone远程代码并提交更新。


1 创建一个空的文件夹,右键选择:Git bash here,登录你的git账号密码开始clone

                                                        

clone:

扫描二维码关注公众号,回复: 1744286 查看本文章

 git remote add origin [email protected]:XXXX/XXX.git     //关联远程仓库

这时候会报错,

fatal:not a git repository (or any of the parent directories):.git

不要理她,继续走:

git init  //初始化

git status //主分支状态还是什么的,不清楚,知道的请留言谢谢。

git add -A

git commit -m"helloworld"

//经过以上四步之后,这个错误就不存在。

git remote add origin [email protected]:XXXX/XXXX.git //关联远程仓库

git clone [email protected]:XXX/XXXX.git   //clone远程仓库代码

这时候会根据输入的地址弹出弹窗,请输入您的码云账号密码即可下载。

新手笔记,无知小儿,望看官见谅……谢谢

猜你喜欢

转载自blog.csdn.net/csdn_loveqingqing/article/details/79549376
今日推荐