![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
git
showlu多吃水果
加油!
展开
-
git出现Auto packing the repository in background for optimum performance. See “git help gc“ for manual
问题:git更新代码push的时候出现如下:Auto packing the repository in background for optimum performance.See “git help gc” for manual housekeeping.Nothing new to pack.解决:方法一:1.输入命令:git fsck --lost-found,出现很多“dangling commit”2.清空他们:git gc --prune=now,完成方法二:执行$ f原创 2020-11-10 13:28:46 · 3193 阅读 · 1 评论 -
git上传github常规操作及发生错误解决办法
一、git常规操作1、git如何提交新创建的文件到github上已存在的仓库的项目中?(1)首先进入项目文件下,打开git bash,输入git status(检查新文件命令)新文件在未提交之前是带有蓝色小问号的。(2)添加文件 输入git add . (添加所有新文件,注意 . 前面有空格)添加文件到缓存区,这时候新文件变成了带有蓝色小加号。git add produce.css(添加produce.css文件)(3)提交文件 输入 git commit -m “new file” -a(提原创 2020-09-23 14:58:06 · 321 阅读 · 0 评论