![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
git
笑望灬星辰
这个作者很懒,什么都没留下…
展开
-
git commit --amend 用法
修改提交的某个文件实际工作场景中 可能存在某次提交代码的过程中 某个文件出错了需要重新提交这个时候 git commit --amend 就派上用场了先新建一个仓库分别创建两个目录 test1 和 test2里面分别对应 test1.txt 和 test2.txt 两个文本文件文件内容然后先正常提交git add *git status // 可省略git commit -m "2020-11-21 21:30"git push -u origin master好原创 2020-11-21 22:38:23 · 12269 阅读 · 1 评论 -
git - not a git repository (or any of the parent directories): .git
一般报这个错是因为目录中没有.git 配置项我这里 运行的是git status而且直接是在桌面运行的 当然会报这个错咯当然你有可能没有勾选显示隐藏的项目win 10然后就不报错了原创 2020-11-21 20:32:04 · 847 阅读 · 0 评论 -
git 报错 destination path already exists and is not empty director
git 报错 destination path already exists and is not empty director既然报错 必然存在报错的机制报错机制桌面上创建任意文件夹拉取任意 git 项目再执行一次报错出现了存在同名目录时将会报错注意 重点来了文件夹为空为啥也报错了解决方案把 隐藏的项目给勾上你就会发现居然存在一个名叫 test 的隐藏文件夹改名拉取项目就不报错啦所以报错的根本原因就是存在同名的文件目录...原创 2020-07-08 01:07:47 · 19541 阅读 · 0 评论 -
git 教程 完整版 无坑点 看这篇就够了
转载自 git 教程转载 2020-07-07 23:48:39 · 691 阅读 · 0 评论 -
git 推送代码到远程仓库
git 环境配置这里我使用的是码云管理的 gitee先在git上新建仓库电脑任意目录下新建文件然后 将仓库克隆到本地.git 为隐藏的文件夹 若你设置了不显示隐藏文件就会看不到它win10系统 下在改目录下新建文件进入cmd 注意 此时的路径为 C:\Users\86157\Desktop\test\test多了一层test 仓库目录名先执行 git add * 也可以指定某个文件然后 cmd 执行 git commit -m "00:1原创 2020-07-07 00:11:16 · 2951 阅读 · 0 评论 -
git 报 Incorrect username or password (access token)
git 报 Incorrect username or password (access token) 错出现机制 git用户名或者密码输入错误时解决方案1 若是登录密码错误需要去git上修改登录密码2 电脑控制面板然后在里面就行编辑修改原创 2020-07-05 19:04:14 · 4368 阅读 · 0 评论 -
git 环境配置
转载自 git 环境配置cmd 输入git效果转载 2020-07-05 17:25:20 · 506 阅读 · 0 评论