![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
git
MiMsmile
这个作者很懒,什么都没留下…
展开
-
GIT常用命令
1.查看文件的提交历史记录 git log -p 文件名 2.查看当前的目录 git status/git branch git branche -a 查看所有的分支原创 2017-08-23 16:11:28 · 179 阅读 · 0 评论 -
git使用
1.克隆代码库git clone [url]2.提交代码 git add . git commit -m 'test' git pull git push原创 2017-09-08 17:47:27 · 217 阅读 · 0 评论 -
git使用时遇到 '/path/my_project/.git/index.lock: File exists'
直接将.git目录下的index.lock文件删除原创 2017-09-08 17:58:44 · 403 阅读 · 0 评论 -
git commit规范
Commit Message 格式 <type>(<scope>): <subject> <空行> <body> <空行> <footer> 上述提交分为三个部分,头部,主体,底部 首先是头部,<type>(<scope>): <subject> 包括了三个节点: ...原创 2019-09-10 16:08:33 · 156 阅读 · 0 评论 -
git重命名分支
1.重命名 git branch -m 【旧分支名】 【新分支名】 2.删除远程分支(:前面要空格,后面不要) git push origin :【旧分支名】 3.push到远程 git push origin feature/bq/v1.3.0_20190916 4.绑定远程分支 git branch --set-upstream-to=origin/【新分支名】 ...原创 2019-09-19 14:03:01 · 237 阅读 · 0 评论