随笔分类 - git相关
git版本控制相关技巧
摘要:需求场景: 本地前端angular6 获取后端api接口数据 前端使用:angular 6 后端:thinkphp 5 解决方案 1)建立本地代理proxyconfig.json文件 angular6项目里新建proxyconfig.json文件 ,放在根目录 这里定义的/apidata就是路由匹配
阅读全文
摘要:git pull操作出现的问题: error: Your local changes to the following files would be overwritten by merge: .idea/workspace.xml .idea/zlhcec.com.imlPlease commit
阅读全文
摘要:git报错 解决办法 phpstorm的操作 1.在整个项目上右键-【git】-【Repository】-【Stash Changes】 然后按照默认设置直接点击 【Create Stash】 2.在直接进行pull操作 在整个项目上右键-【git】-【Repository】-【Pull】 参考资料
阅读全文
摘要:本地代码推送到远程git仓库上 本地git分支关联到远程分支 $ git remote add origin http://admin@185.239.226.111:9111/r/thinkcmf-zlh.git 推送到远程 git push -u origin master 正常这个就可以不过遇
阅读全文
摘要:本地代码提交到github上 一、本地项目提交到GitHub 首先直接选择本地项目的路径 右键-Git Bash Here 进入项目目录 要安装Git 大概这样 git init 2) touch README git add README git commit -m "信息" git remote
阅读全文