随笔分类 - git
git
摘要:git branch 命令操作 1、查看本地分支 : git branch 2 、删除本地已合并的分支: git branch -d [branchname] 某些情况下可以用 git branch -D [branchName] (使用时应注意是否已合并) 3、删除远程分支: git push o
阅读全文
摘要:一天,在合并代码,commit时,然后git push origin master一下,报错,错误内容: Please make sure you have the correct access rights and the repository exists. 然后谷歌了一下,原来是ssh key
阅读全文
摘要:假如我们现在在dev分支上,刚开发完项目,执行了下列命令 git add .git commit -m ‘dev'git push -u origin dev然后我们要把dev分支的代码合并到master分支上 该如何?首先切换到master分支上 git checkout master如果是多人开
阅读全文
摘要:打开git命令窗输入以下代码 git push -f origin master 再次推送(push)就成功了。
阅读全文
摘要:1、git merge 分支名 2、git push origin 3、删除本地分支 git branch -D 分支名 4 删除远程分支: git branch -a查看远程分支 使用下面两条命令来删除远程分支git branch -r -d origin/branch-namegit push
阅读全文
摘要:https://www.cnblogs.com/xieyang-yang/p/10767330.html 需求:将develop合并到master分支 1.查看当前分支(当前分支可以直接查看或者命令查看) git branch或者命令git status *代表当前分支 2.切换分支到master
阅读全文
摘要:Git fetch和git pull的区别, 解决Git报错:error: You have not concluded your merge (MERGE_HEAD exists). 解决办法一:保留本地的更改,中止合并->重新合并->重新拉取 解决办法二:舍弃本地代码,远端版本覆盖本地版本(慎重
阅读全文
摘要:http://blog.csdn.net/lsyz0021/article/details/52064829 当我们使用github或者bitbucket等仓库时我们有可能需要ssh认证,所以需要生成他的ssh key。 1、首先你要安装Git工具 下载地址:https://git-scm.com/
阅读全文
摘要:https://my.oschina.net/tearlight/blog/193921 <a>github的提交方式 (1)git add . 存储到本地 git commit -m 'message' 存储时的标记(修改了哪些地方,方便下次查询) git pull 下载服务器代码 git pus
阅读全文
摘要:http://jiajing.elastos.org/2013/04/15/%E4%BD%BF%E7%94%A8git%E5%91%BD%E4%BB%A4%E4%B8%8A%E4%BC%A0%E4%BB%A3%E7%A0%81/ 一开始不熟悉git工具,在上传代码时闹了笑话,于是这里贴出使用方法,供
阅读全文