![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Git
而我想成为一个有趣的妞
这个作者很懒,什么都没留下…
展开
-
【Git】忽略已经git过的文件/文件夹
我用的是码云 GitHub一样1、确保服务器和码云上面的内容一致 如果不一致 那么先使用git pull origin master2、git rm -r --cached filename(要删除的文件/文件夹)3、git commit -m "delete filename"4、git push origin master //推送到码云上面...原创 2018-08-06 08:35:11 · 5784 阅读 · 0 评论 -
【Git】unable to access:'url'Problem with the SSL CA cert (path access rights?)
删除了相关的ssl文件,恢复即可。原创 2018-10-16 10:33:47 · 878 阅读 · 0 评论 -
【报错】fatal: remote origin already exists.
git remote rm origin转载于:https://blog.csdn.net/top_code/article/details/50381432转载 2018-08-03 13:20:31 · 100 阅读 · 0 评论 -
【报错】(gnome-ssh-askpass:36268): Gtk-WARNING **: cannot open display: error: unable to read askpass r
unset SSH_ASKPASS转载 2018-08-03 13:19:17 · 1326 阅读 · 0 评论 -
【报错】:error: The requested URL returned error: 401 Unauthorized while accessing
原因:git 版本低升级Git CentOS默认的是1.71、安装需求yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel asciidocyum install gcc perl-ExtUtils-MakeMakerwget http://ftp.gnu.org/pub/gnu/libi...转载 2018-08-03 10:00:40 · 2752 阅读 · 0 评论 -
【报错】Git: ! [rejected] master -> master (non-fast-forward)
原因:有代码没有add commit操作:git fetch origingit merge origin/mastergit statusgit add .git statusgit commit -m "add file"git statusgit push origin master参考于:https://blog.csdn.net/sunnypotter/artic...原创 2018-08-03 13:10:05 · 548 阅读 · 0 评论 -
【报错】fatal: refusing to merge unrelated histories
操作:git pull --allow-unrelated-histories origin master原创 2018-08-03 13:17:01 · 184 阅读 · 0 评论 -
git clone的时候文件太大 克隆中断
git config --global core.compression 0git clone --depth 1 项目地址原创 2018-08-07 11:35:13 · 11566 阅读 · 3 评论 -
【Git】解决git pull 和 git push 每次都需要输入密码的问题
git config --global credential.helper store之后再次执行git push 或者git pull这时候还需要输入用户名和密码下次就不需要了原创 2018-08-07 11:32:02 · 5512 阅读 · 2 评论 -
给项目安装Git
yum install git-core //安装gitgit config --global user.name "zhangsan" git config --global user.user.email "11111@qq.com" git config --global color.ui true ...原创 2018-08-07 10:12:02 · 187 阅读 · 0 评论 -
【报错】tortoiseGit no git.exe found
运行tortoiseGit之后显示找不到git.exe原因:没有安装git,tortoiseGit是在安装了git的基础上运行的到这里下载git并安装:https://gitforwindows.org/原创 2019-06-19 11:45:58 · 16222 阅读 · 1 评论