git
文章平均质量分 73
卩杉
勤学如早春之苗,不见其增,日有所长。辍学如磨刀之石,不见其减,日有所损。
展开
-
github fork PR 的简单使用
文章目录Clone 代码添加远程仓库PR入职新公司,就在 git 的使用上被各种虐。整理一篇文档,对这个问题梳理总结下。之前用 git 都是直接新建分支,然后 PR review 后合到主分支,现在是先 fork 下,之前没用过 fork ????,其实就是多了一步,从自己仓库的分支提 PR 。Clone 代码fork 代码后 clone 到本地。git clone git@github.com:xxxxx/dev-git.git我们可以用 git remote -v 看下远程仓库情况:原创 2021-04-29 21:54:24 · 1600 阅读 · 0 评论 -
git 删除仓库中的线上文件
我在提交代码时没有 ignore IDE 的 idea 文件,将其也提交到了版本控制仓库中,如下我现在需要将其删除,这个操作只能使用命令行,命令如下git rm -r --cached 文件名 切换到项目文件夹下执行 然后 commit 并 push 此时再看我们的仓库就会发现, .idea 文件夹已经被删除了参考https://blog.csd...原创 2018-12-31 18:32:59 · 2622 阅读 · 0 评论 -
git 解决 fatal: 'origin' does not appear to be a git repository
刚上传代码到 github 的时候,当我输入 git push -u origin master 的时,提示:fatal: 'origin' does not appear to be a git repositoryfatal: Could not read from remote repository.解决办法:控制台中输入git remote add origin ...原创 2018-11-01 17:51:50 · 61758 阅读 · 0 评论 -
phpstorm clone 码云项目到本地 Version Control 不显示
最近在用码云作为代码仓库,但是建了仓库,也填加了 SSH,把项目利用 phpstorm VCS --> checkout from version control --> git 克隆到本地之后, Version control 一直不显示,遇到这种情况可以使用 alt+9把 Version control 显示. 参考https://intel...原创 2018-12-17 14:51:09 · 1479 阅读 · 0 评论 -
git修改远程仓库地址
git remote set-url origin new.git.url/herenew.git.url/here 是新地址参考https://stackoverflow.com/questions/2432764/how-to-change-the-uri-url-for-a-remote-git-repository原创 2019-06-29 14:48:15 · 463 阅读 · 0 评论