![](https://img-blog.csdnimg.cn/20210201153446214.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
Git
Git使用经验
小鹰信息技术服务部
Tolerance, Diversity. Hit Refresh.
展开
-
Git Push报错:VS403654: The push was rejected because it contains one or more secrets.
一开始没搞明白,是不是remote那边新增了什么检查?原创 2024-03-19 17:55:13 · 394 阅读 · 0 评论 -
Linux平台上的Git GUI工具:Git-cola
应一客户要求,应用软件要在国产系统上开发,于是选择了优麒麟,开发工具是QtCreator.发现QtCreator自带的Git管理功能不太智能,push,pull之类的操作无法进行。于是找了一个Git GUI工具Git-cola,发现挺好用;安装:sudo apt install git-cola界面:功能比较全,可以很好得完成版本管理的操作。...原创 2022-05-01 17:47:48 · 1465 阅读 · 0 评论 -
Linux下的Git GUI工具
QtCreator git tool not so smart.QGit.download:sudo apt-get install qgitUI:原创 2022-04-23 11:25:49 · 1707 阅读 · 0 评论 -
Git报错:fatal: unable to auto-detect email address
Ubuntu环境下,QtCreator 提交修改,commit, 报错提示:fatal: unable to auto-detect email address解决办法:git config --global user.email "you@example.com"git config --global user.name "Your Name"问题解决。git - Unable to auto-detect email address - Stack Overflow..原创 2022-04-23 10:08:38 · 650 阅读 · 0 评论 -
Android Studio提交Azure报错:could not read Password for xxxx No such file or directory android studio
Android Studio中,将修改并已经commit的代码push到Azure, 报错提示:could not read Password for xxxxxxx No such file or directory android studio之前可以的,为什么突然不能提交了?原来是重装了系统,之前安装过的Azure插件没了。于是尝试重新安装Azure插件:File > Settings > Plugings, 搜索azure, 然后安装。重新push, 成功。问题解原创 2022-03-27 16:07:39 · 2421 阅读 · 0 评论 -
Azure Repos 恢复已删除的分支
今天发现本地的分支有点问题,想从ADO上看看情况,发现ADO上想看的分支已经删了。想着能否恢复?网上搜索一番,找到了方法,步骤如下:Branches > All,在Filter中搜索已删除分支的名字,它就在界面下方出现了:然后选择 Restore branch恢复成功:参考:Restore a deleted branch in your Git repo - Azure Repos | Microsoft Docs...原创 2022-03-19 16:57:12 · 241 阅读 · 0 评论 -
Visual Studio从历史版本创建分支
在代码中增加了一个功能,需要更新到客户现场;但是客户现场用的是很久以前的老版本,并且不能马上升级到最新版本。那么怎样才能把新的改动放进一个历史版本呢?答案是选定某个分支(比如主分支),在它的历史记录中选中某一条,然后创建分支:然后就可以在这个新创建的历史分支上修改并发布程序了。...原创 2021-10-28 10:56:47 · 321 阅读 · 0 评论 -
Android Studio push报错:unable to access : OpenSSL SSL_read: Connection was reset, errno 10054
Android Studio中修改了内容,准备往GitHub上push时,报错:unable to access : OpenSSL SSL_read: Connection was reset, errno 10054网上找到了解决办法:https://www.cnblogs.com/xym4869/p/13284364.html?utm_source=tuicool进入CMD,ipconfig /flushdnsC:\Users\Administrator>ipconfig原创 2021-05-14 05:39:31 · 664 阅读 · 3 评论 -
GitHub 将现有仓库转移至某个组织
有个仓库,有个组织,需要把这个仓库转移至这个组织中。步骤如下:repository > settings > Transfer输入组织名称即可。原创 2020-11-02 22:51:02 · 1912 阅读 · 0 评论 -
Visual Studio 2017 Git, 只提交(CheckIn)一部分代码
Visual Studio 2017, git,近期做了好几个文件的修改,但是因为一些原因,现在想先提交其中一个文件,但是Team Explorer节目上只有【Commit All】按钮,怎么办?方法:右击想要提交的文件,选择“Stage", 然后就能单独提交 Staged Files了。参考:https://stackoverflow.com/questions/53748992/commit-a-single-file-in-visual-studio-professional-2017原创 2020-09-30 10:40:34 · 2272 阅读 · 1 评论 -
win10 64位 Git启动闪退
win10 64位Git启动闪退。今年早些时候在win7上也遇到类似的问题,借鉴了当时的方法,发现情况不完全一样,无法套用。在网上找到了一个方法,谢谢这位网友的分享:https://www.cnblogs.com/ricklz/p/9216395.html null.sys文件链接:https://pan.baidu.com/s/1UtcZizm-iFcVk4OKrnFJVg 密码:1...原创 2018-11-30 15:47:30 · 730 阅读 · 0 评论 -
Git无法启动 fatal: open /dev/null or dup failed: No such file or directory
最近突然发现Git无法启动了,Git Bash闪退,看不到错误信息,Git GUI弹出报错提示框,提示fatal: open /dev/null or dup failed: No such file or directory导致我很长时间都无法使用Git。最终找到了解决的方法:设备管理器 - 查看 - 显示隐藏的设备 - 非即插即用驱动器 - Null右击 - 属性 - 驱动程序,把“类型”改为...原创 2018-03-03 22:00:47 · 6699 阅读 · 0 评论 -
Git pull 提示refusing to merge unrelated histories
今天从GitHub下拉一个read.md文件,Git Bash提示:fatal: refusing to merge unrelated histories从网上找到了解决办法:$ git pull origin master --allow-unrelated-histories原创 2018-03-10 21:06:21 · 813 阅读 · 0 评论 -
error: failed to push some refs to 'git@github.com:xxxxxxxx.git'
往Github的一个新仓库中提交内容,提示:error: failed to push some refs to 'git@github.com:zhouyingge1104/AutoZhenjiu.git'网上找到了原因:原来是新建的仓库中有一个README.md文件不在本地所致,解决办法:$ git pull --rebase origin master这样就把README.md给拉下来了。然...原创 2018-03-06 20:15:47 · 788 阅读 · 0 评论 -
Windows下 Git 的基本操作
今天准备整理一下代码,重温一下Git的基本命令,好久不用忘得差不多了。1. 进入某个目录:进入D盘,然后进入D盘的名为Git的文件夹:$ cd D:$ cd Git2. 返回上一级目录:$ cd .. 注意,cd和..之间必须有一个空格3. 查看当前目录:$ pwd4. 创建一个名为foodsafety-ch原创 2015-01-04 20:08:44 · 27939 阅读 · 0 评论