![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
github之家
~
Muasci
keep open
keep real
keep smiling
不要忘记命运掌握在自己的手里,确保做的每一件事,都是自己选择去做的,成为时间这敌人的主宰,成为自己的存在。记得常怀愤怒,并把它转化成热情,选择一切、拥抱一切、坚持一切、把一切视作敌人、战胜一切。<----曾经的发言( ╯□╰ )
展开
-
[github]——push错误:Failed to connect to github.com
解决查看是否使用了代理:git config --global http.proxy取消代理:git config --global --unset http.proxy如果还不行的话:查看系统是否使用了代理:env | grep -i proxy取消系统的代理:unset https_proxy好运…参考使用github出了些问题?fatal: unable to access;Failed connect to github.com:8087; No error - 星河Aria原创 2021-04-14 14:12:46 · 154 阅读 · 0 评论 -
[github]——回滚到某一次的commit
前言不只是本地回滚,远程仓库也要回滚本地回滚使用git log命令,查看你需要回滚到的版本的commit_id然后使用git reset --hard commit_id完成本地的回滚(注意hard)远程仓库回滚把本地的push上去:git push origin HEAD --force(这里加不加force有无区别我不知道)参考:github删除一个commit(回滚到某个commit)的方法...原创 2021-03-27 22:05:21 · 1334 阅读 · 0 评论 -
[github]——Updates were rejected because the tip of your current branch is behind错误
问题描述:我经历了一个比较坎坷的reset过程,如今身在何处已不自知。执行git push origin master之后,报一下错:问题解决git status之后看到如下:所以按照上面说的,进行git pull来合并分支,结果如下:按照提示,删除上述文件:...原创 2021-03-27 21:58:29 · 79 阅读 · 0 评论 -
[github]——git add
前言第一次git push就被教育[热心地指导]了,主要问题有两个。1. 我把.pyc文件也上传了上去,那是py程序编译的结果 2. 我把json也上传了上去,一般不用解决问题一:忽略.pyc文件在.gitignore文件中增加:*.jsonl解决问题二:单步不上传.json文件使用 git add -u 来只提交所有被删除和修改的文件到数据暂存区,而.json文件一般不修改~...原创 2021-03-19 14:21:59 · 126 阅读 · 0 评论 -
[github]——记一次成功的HEAD回退&git push
前言目前存在两个问题:本来想用"git reset git reset --hard HEAD~1"来取消当前的commit(因为commit完,我push不上去…我想着就先把它取消了)。结果…我手贱按了两次,所以我既取消了当前的commit,又更进一步往前回退了一步。 我想:回到一开始的版本。然后就是 git add->git commit->git push origin master,之后报的错:“fatal:unable to access …:Could not resolv原创 2021-03-19 13:18:57 · 429 阅读 · 0 评论 -
[github]——克隆带有submodule的仓库
前言碰到一个仓库,里面带有这样的文件:Clone带有Submodule的仓库克隆整个项目:git clone 你要克隆的项目cd 你克隆了的项目git submodule // 查看submodule的状态>-一串hash码 文件目录前面的减号意味着:该子模块还没有检出所以要检出该子模块:git submodule init>Submodule ...git submodule update>Cloning into ...参考云水——Git S原创 2021-03-12 09:55:23 · 992 阅读 · 0 评论 -
[github]——git clone时遇到的错误
错误1:fatal: unable to access … Received HTTP code 503 from proxy after CONNECT尝试解决1:参考了:Received HTTP code 503 from proxy after CONNECT,尝试取消代理啥的,但我看我的.gitconfig里面本来就没有代理的.git clone https://github.com/... --config http.proxy= --config http.sslVerify=fals原创 2021-03-12 09:52:29 · 1090 阅读 · 0 评论 -
[github]——github上传修改过的文件
前言修改了项目中的部分文件,需要上传到github上。步骤第一步:git status查看项目状态,发现:红字部分为修改过的文件第二步:git add 被修改的文件名第三步:再用git status查看项目状态,发现变成了绿色第四步:git commit -m ‘一段描述’来把刚刚add过的文件添加到本地暂存区第五步:git push提交到github参考使用git命令从github上克隆、新增、修改文件感谢朽木o0大佬~...原创 2021-02-10 21:33:22 · 1190 阅读 · 0 评论 -
[github]——github相关错误
error: src refspec master does not match any.error: failed to push some refs to ‘…’git remote set-url origin github.com/用户名/项目名结果又报了下面的错误????:fatal: ‘…’ does not appear to be a git repository.fatal: Could not read from remote repository.解决:`git remote原创 2021-02-10 20:56:57 · 88 阅读 · 0 评论 -
[github]——问题:ask-pass-trampoline.bat: No such file or directory fatal: could not read Usename
问题(问题截图取自它处)解决https://stackoverflow.com/questions/42915793/attempting-push-on-git-and-receiving-could-not-read-username-for-https-githu原创 2020-11-05 18:04:03 · 1046 阅读 · 0 评论