
git
xiaojinglyd
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
开始工作就差一个双击
背景 程序员日常,每天打开电脑开始工作时候总是要打开一堆的东西,浏览器、聊天工具、编辑器(打开对应的项目)、项目文件夹…作为一个’懒人‘,每天重复这一堆操作,很烦~~~ 环境 windows(MAC也可以,下文会讲一点) git VSCode安装并配置了path 开整 第一步新建文件 新建一个文本文档,重命名为open.sh,重点是后缀,双击打开此文件会默认使用git bash运行 后缀名也可以是.cmd双击打开此文件会默认使用cmd运行 第二步编写文件 想要打开一个文件夹(文件夹地址:E:\proje转载 2021-06-20 00:05:12 · 185 阅读 · 0 评论 -
failed with status 128
报错信息 # 在使用`download-git-repo`下载仓库代码时报错信息 'git clone' failed with status 128 Response code 404 (Not Found) connect ETIMEDOUT # 运行`git clone`的报错信息 remote: HTTP Basic: Access denied fatal: Authentication failed for 处理 download-git-repo报错 Response code 404 (转载 2021-03-21 16:07:36 · 2523 阅读 · 0 评论 -
gitignore不生效
问题 修改.gitignore文件之后,git commit提交,但是没有生效最新的gitignore配置 解决 出现不生效的原因是已经提交过更新,git有了缓存,所以更改完.gitignore文件需要先清git缓存,然后再提交 git rm -r --cached . git add . git commit -m 'xxx' ...原创 2021-03-21 16:06:31 · 186 阅读 · 0 评论 -
Git代码迁库
背景 项目开发初期使用个人建立git仓库,现需要迁移到部门git仓库 实践 为了不破坏原有的git提交记录,使用修改远程仓库地址的方式 查看 git remote // 查看远程仓库地址别名列表 git remote -v // 查看远程仓库地址别名列表,并且显示push和fetch地址 git remote show origin // 查看origin远程仓库的详细信息 修改 git remote origin set-url [url] // 删除之后添加 git remote rm or原创 2020-09-16 21:11:54 · 156 阅读 · 0 评论