git push报错: github不能上传大文件,按道理删掉重新提交就行了 可是删掉后,git add -A,再git commit,再git push,依然报错 后来我想明白了 github上传时候,其实不止是push当前版本,还要push所有历史版本,如果之前某次commit没有上传,那么这个历史版本也要默认push 为此,解决办法: 1,用git cherry命令查看所有commit但没push的历史版本 2,再用git reset [版本id]命令撤销之前的版本 值得注意的是git r…
字面解释的话,git commit -m用于提交暂存区的文件:git commit -am用于提交跟踪过的文件 要理解它们的区别,首先要明白git的文件状态变化周期,如下图所示 工作目录下面的所有文件都不外乎这两种状态:已跟踪或未跟踪.已跟踪的文件是指本来就被纳入版本控制管理的文件,在上次快照中有它们的记录,工作一段时间后,它们的状态可能是未更新,已修改或者已放入暂存区 下面以一个实例说明 在项目文件夹中新增一个文件如'a.txt'时,该文件处于untracked未跟踪状态.未跟踪状态的文件是无…
git commit -m 和 git commit -am 通常修改一个文件 并且将文件提交到本地分支的命令是: git add . git commit -m 'update' 以上两个命令其实可以合并一处使用(简化成): git commit -am 'update' [am] 就是 [add modify] 两个命令的合并 如果项目添加了新文件,必须使用分开的命令,不能用合并命令 git add . git commit -m 'update'…
如果在git配置中报错fatal: Authentication failed for '',其实就是凭证失败的意思 接着输入一下命令行没有出现要求输入用户名或密码,并报错 $ git config --system --unset credential.helper   error: could not lock config file C:/Program Files/Git/mingw64/etc/gitconfig: Permission denied 1.首先你需要确认你的账号密码是否…
执行git rebase报错如下: First, rewinding head to replay your work on top of it... Applying: 本次提交信息 .git/rebase-apply/: new blank line at EOF. + warning: line adds whitespace errors. Using index info to reconstruct a base tree... Falling back to patching ba…
git clone 报错 Unable to negotiate with xxx.xxx.xxx.xxx. port 12345: no matching cipher found. Their offer: aes128-cbc,3des-cbc,blowfish-cbc 解决: # sudo nano /etc/ssh/ssh_config 把以下代码放到指定位置, Ciphers aes128-ctr,aes192-ctr,aes256-ctr,aes128-cbc,3des-cbc,a…
git push报错error: failed to push some refs to 'git@github.com' $ git push -u origin master To git@github.com:xxx/xxx.git ! [rejected] master -> master (fetch first) error: failed to push some refs to 'git@github.com:xxx/xxx.git' hint: Updates were rej…
git push报错 git push origin master Administrator@FREESKYC-92DB80 /e/git/ouyida3/ouyida3.github.io (master) $ git push origin master fatal: unable to access 'https://github.com/ouyida3/ouyida3.github.io.git/': err or:1407742E:SSL routines:SSL23_GET_SER…
git clone报错提示 git clone https://github.com/xxxx.git Initialized empty Git repository in /root/xxxx/.git/ error: while accessing https://github.com/xxxx.git/info/refs fatal: HTTP request failed 解决办法 yum update -y nss curl libcurl…
在docker部署mysql时 报错 找不到 容器不自动启动  , docker start 容器名  也没有效果 多次尝试发现 原因是创建容器时在 下面创建的 更改为下创建 问题解决…