美文网首页
Git 命令记录

Git 命令记录

作者: RulerMike | 来源:发表于2020-12-07 15:05 被阅读0次
git rm -rf --cache directory/file  指定文件夹/文件跟踪关系清除

git clone 由于网络或其他原因中断:
error: RPC failed; curl 18 transfer closed with outstanding read data remaining
通常由于项目由于时代久远,所以导致整个项目比较复杂庞大。出现这种错误,就是因为curl 的 postBuffer 默认值太小的原因,重新在终端配置一下这个值就可以了:

git config --global http.postBuffer 524288000
(git clone http://github.com/large-repository --depth 1
cd large-repository
git fetch --unshallow)

git 重置本地账号密码

git config --system --unset credential.helper

gitignore 没有生效

如果某些文件已经被纳入了版本管理中,就算是在.gitignore中已经声明了忽略路径也是不起作用的,这时候我们就应该先把本地缓存删除,然后再进行git的push,这样就不会出现忽略的文件了。git清除本地缓存命令如下:

git rm -r --cached .  
git add .
git commit -m "update gitignore"

git 设置账号

这里的邮箱 gdutxiaoxu@163.com 替换成自己的邮箱
ssh-keygen -t rsa -C "gdutxiaoxu@163.com"

git 错误: SSL_read: Connection was reset, errno 10054

git config --global http.sslVerify "false"

相关文章

  • Git高级命令

    命令 1:查看历史记录 git log 可以查看所有提交记录 命令 2:git commit --amend 适...

  • Git操作记录

    本文目录 一台电脑配置多个git账号 git常用的操作命令 使用git命令合并多条commit记录 使用git命令...

  • iOS Git

    Git$ git reflog : Git提供了一个命令git reflog用来记录你的每一次命令:$ git r...

  • Git常用指令

    前言 本文主要为了记录常用的几个命令的详细操作主要详细记录以下几个命令 git merge git rebase ...

  • Git常用命令

    git常用命令记录 git提交一个没有任何改动的记录:git commit -m "empty commit" -...

  • 查看历史记录

    查看版记录的命令git loggit log 查看版本记录 查看记录只显示一行:git log --pretty=...

  • git分支的创建与使用

    在此记录下命令: 创建命令:git branch 分支名 切换分支:git checkout 分支名 创建并切换分...

  • Git版本回退

    首先我们通过log命令查看我们的历史记录,在Git中,我们用git log命令查看: $ git log --pr...

  • Git [提交记录查看、提交、变基](I)

    Git 简易指南Git 参考手册Pro Git(中文版)Git教程 廖雪峰 查看提交记录 终端命令git log:...

  • 2020-05-07

    #每日知识记录1 git命令之强行推送 : git push -f origin master

网友评论

      本文标题:Git 命令记录

      本文链接:https://www.haomeiwen.com/subject/tdyightx.html