![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Git
luoChao0916
这个作者很懒,什么都没留下…
展开
-
Please make sure you have the correct access rights and the repository exists.
将本地生成的公钥已经放到github服务器上但是在git clone拉取项目的时候 报错 Please make sure you have the correct access rights and the repository exists.解决cd ~/.ssh这条命令要在 .ssh下执行ssh -T git@github.com![在这里插入图片描述](https://img...原创 2020-04-08 09:50:31 · 275 阅读 · 0 评论 -
git基本使用
平常我们使用git的操作git add . 将工作区的所有变化提交到暂存区git commit -m “本次提交的备注” 将暂存区所有变化提交到本地仓库git pull 将远程仓库和本地仓库同步一下(多人合作的时候可能远程仓库被修改)git push 推送到远程仓库多人合作开发的时候在git push的时候要先git pull因为有可能远程仓库已经被修改,而本地没有,说白了就是没有同步...原创 2018-11-13 23:10:42 · 145 阅读 · 0 评论 -
git创建远程分支并将本地分支与远程分支关联
1,查看本地分支和远程分支git branch -a* master remotes/origin/HEAD -> origin/master remotes/origin/master2,创建并切换分支git checkout -b test*号代表当前分支;remotes代表远程分支 master* test remotes/origin/HEAD ->...原创 2019-07-17 21:27:07 · 4340 阅读 · 0 评论 -
git merge 结果是Already up-to-date.
git 本地分支合并master分支代码提示为 git merge Already up-to-date.原因在于merge之前,master分支的代码不是最新代码1,应该先切换到master分支git checkout master2,拉取代码git pull origin master3,再切换到要合并master的分支git checkout 分支4,合并代码git me...原创 2019-07-17 21:41:31 · 20775 阅读 · 3 评论