![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
管理工具 git
温暖如春520
这个作者很懒,什么都没留下…
展开
-
git pull某单个文件
git fetchgit checkout origin/master -- path/to/file原创 2022-01-13 16:07:41 · 1657 阅读 · 0 评论 -
The “fxp/composer-asset-plugin“ plugin was skipped because it requires a Plugin API version (“^1.0“)
运行任何composer都报错如下:The "fxp/composer-asset-plugin" plugin was skipped because it requires a Plugin API version ("^1.0") that does not match your Composer installation ("2.1.0"). You may need to run composer update with the "--no-plugins" option.解释:跳过了“f原创 2021-08-11 18:00:06 · 2110 阅读 · 0 评论 -
Git切换远程仓库地址
1、切换远程仓库地址: 方式一:修改远程仓库地址 【git remote set-url origin URL】 更换远程仓库地址,URL为新地址。 方式二:先删除远程仓库地址,然后再添加 【git remote rm origin】 删除现有远程仓库 【git remote add origin url】添加新远程仓库 2、【git remote -v 】查看远程仓库的地址...转载 2020-12-22 10:10:50 · 1029 阅读 · 0 评论 -
Gitosis不能拉取代码,报错 ERROR:gitosis.serve.main:Repository read access denied fatal
公司使用的Git管理工具是Gitosis,在使用时,出现了不能拉取问题在gitosis.conf中做好了配置,且上传了公钥的情况下,一直不能拉取代码,报错如下ERROR:gitosis.serve.main:Repository read access deniedfatal: Could not read from remote repository.Please make sure you have the correct access rightsand the repository原创 2020-10-09 11:44:15 · 1764 阅读 · 0 评论 -
服务器搭建git仓库
踩了很多坑,遇到了无数报错,终于搞好了这个简单的东西,惭愧到最后想了想还是不懂其中是怎么回事儿,所以写下了记录一下服务器搭建git仓是个什么玩意呢?说白了,就是给服务器建个仓库,完了把代码可以从本地推到服务器上,如果正好,你的线上项目刚好读取的是git仓里相对应的项目目录,那么恭喜,你从本地修改了代码推送上去后访问你服务器项目地址就可以直接显示出修改后的样子了(当然如果考虑网站稳定性问题,可以建不...原创 2018-06-20 09:59:30 · 4867 阅读 · 0 评论 -
如何用命令将本地项目上传到git
1、(先进入项目文件夹)通过命令 git init 把这个目录变成git可以管理的仓库git init2、把文件添加到版本库中,使用命令 git add .添加到暂存区里面去,不要忘记后面的小数点“.”,意为添加文件夹下的所有文件git add .3、用命令 git commit告诉Git,把文件提交到仓库。引号内为提交说明git commit -m 'first com...原创 2019-02-15 15:37:24 · 100 阅读 · 0 评论