摘要: 前提: 1、已经成功安装 git; 2、将 phpstrom 和 gitlab 连接起来。参考此文章 一、在 phpstrom 中打开需要推送的项目 二、将 ‘工作区’ 代码 添加到 ‘暂存区’ 三、拉代码(当多人共同开发时,为了保证不去覆盖别人已经提交的代码) 四、提交代码 到本地仓库 五、推代码 阅读全文
posted @ 2021-05-18 17:18 星云惊蛰 阅读(110) 评论(0) 推荐(0) 编辑
摘要: 1.更新: git pull origin转:https://www.runoob.com/git/git-pull.html2.git status 查看当前状态 提交代码第二步:git add . 或者 git add xxx 提交代码第三步:git commit -m "提交代码" 推送修改到 阅读全文
posted @ 2021-05-18 17:17 星云惊蛰 阅读(700) 评论(0) 推荐(0) 编辑
摘要: 使用 git pull 更新代码,遇到了下面的问题: error: Your local changes to the following files would be overwritten by merge: xxx/xxx/xxx.java Please, commit your change 阅读全文
posted @ 2021-05-18 16:27 星云惊蛰 阅读(920) 评论(0) 推荐(0) 编辑
摘要: zhuan:https://www.kancloud.cn/longlong7021/longlong/988122 http://gitref.justjavac.com/creating/#init 阅读全文
posted @ 2021-05-18 11:12 星云惊蛰 阅读(15) 评论(0) 推荐(0) 编辑
摘要: mac: 2.phpstorm->csv->create git... 3.命令:ssh-keygen -t rsa -C"your_email@youremail.com"(gitlab中的密码) //直接按3次回车选择无密码 在$ cat ~/.ssh/id_rsa.pub中自动生成了key的值 阅读全文
posted @ 2021-05-18 11:05 星云惊蛰 阅读(144) 评论(0) 推荐(0) 编辑