随笔分类 -  git

摘要:git clone -b 分支名称 git远程仓库地址 阅读全文
posted @ 2021-02-05 11:50 youlj 阅读(66) 评论(0) 推荐(0)
摘要:在终端上ping www.github.com windows系统下一般在C:\Windows\System32\drivers\etc下有hosts文件,修改hosts文件,在最下面加上ping到的ip地址和github.com 阅读全文
posted @ 2021-02-04 21:48 youlj 阅读(541) 评论(0) 推荐(0)
摘要:点击查看代码 1 git init // 初始化本仓库 2 git remote -v //查看添加的远程地址 3 git remote remove origin //删除添加的远程地址 4 git remote add origin 远程仓库地址 // 链接远程仓库 5 git add . // 阅读全文
posted @ 2021-01-26 14:07 youlj 阅读(55) 评论(0) 推荐(0)
摘要:1、git pull origin master --allow-unrelated-histories //把远程仓库和本地同步,消除差异 2、重新add和commit相应文件 3、git push origin master 4、此时就能够上传成功了 阅读全文
posted @ 2020-12-02 18:40 youlj 阅读(674) 评论(0) 推荐(0)
摘要:把https模式换成ssh 用git remote -v查看使用的是https还是ssh等 $ git remote -v > origin https://github.com/USERNAME/REPOSITORY.git (fetch) > origin https://github.com/ 阅读全文
posted @ 2020-12-02 18:36 youlj 阅读(7723) 评论(0) 推荐(0)