随笔分类 -  Git相关问题点

git使用过程中的问题点,提高自身使用版本控制器git技能;
摘要:copy from https://www.cnblogs.com/lyraLee/p/10906058.html 远程仓库中分支存在 方法一:(已经创建了本地分支) git branch --set-upstream-to=origin/remote_branch your_branch //等同 阅读全文
posted @ 2020-04-14 09:08 努力~努力再努力~ 阅读(3024) 评论(0) 推荐(0)
摘要:1.gitclone前http://10.10.11.4:9999/SZRDC/I`````````.git改为http://git.berchina.com:9999/~~~~``` 2.Cloning into 'kxvc'... remote: HTTP Basic: Access denie 阅读全文
posted @ 2020-03-27 10:23 努力~努力再努力~ 阅读(174) 评论(0) 推荐(0)
摘要:$ git checkout -b “分支名称”; 新建本地分支 $ git branch; 查看是否创建成功以及目前在哪个分支 $ git push -u origin "分支名称";本地推送到远程 打开git就阔以看见了 阅读全文
posted @ 2019-09-26 18:35 努力~努力再努力~ 阅读(8498) 评论(0) 推荐(0)
摘要:1.github上面创建新项目 2.初始化项目 可忽略 首先加入git提交忽略的文件.gitignore文件 .idea 忽略以.idea文件logs/ 忽略logs文件夹*.iml 忽略以iml结尾的文件target/ 忽略target文件夹 右击VueBack文件夹根目录,点击“Git Bash 阅读全文
posted @ 2019-09-22 17:29 努力~努力再努力~ 阅读(5398) 评论(0) 推荐(0)
摘要:情况是这样的,现在远程有一个仓库,分支就一个,是master。然后我本地的仓库是从远程的master上clone下来的。大家都是clone下来,再在自己本地改好,再commit然后pull然后push,大家都是这么做的。那么现在问题来了: 1,那我本地这个也算是个分支?还是就是一个本地仓库? 答:本 阅读全文
posted @ 2019-08-09 14:04 努力~努力再努力~ 阅读(42580) 评论(4) 推荐(13)
摘要:1.git提交的时候遇到: # Please enter the commit message for your changes. Lines starting with '#' will be ignored, and an empty message aborts the commit.的问题, 阅读全文
posted @ 2019-08-09 09:05 努力~努力再努力~ 阅读(5123) 评论(0) 推荐(1)
摘要:一、Git配置环境: 1、通过git init命令把某个目录变成Git可以管理的仓库; 2、生成公钥秘钥:ssh key ssh-keygen -t rsa -C "for example@163.com"(邮箱) 3、在GitHub的Setting中配置公钥 3、 关联远程gith的用户名和邮箱 阅读全文
posted @ 2019-08-07 09:40 努力~努力再努力~ 阅读(2531) 评论(0) 推荐(0)
摘要:当执行git命令如:git clone、git pull等等 出现报错:ssh: connect to host github.com port 22: Connection timed outfatal: Could not read from remote repository.Please m 阅读全文
posted @ 2019-08-02 11:34 努力~努力再努力~ 阅读(1754) 评论(0) 推荐(0)