随笔分类 -  Git

摘要:问题 10:35 Fetch failed: Could not read from remote repository. 解决 Fetching originThe authenticity of host '[git.hnzhrj.com]:29418 ([106.3.45.170]:29418 阅读全文
posted @ 2021-08-31 11:02 Hxf_007 阅读(56) 评论(0) 推荐(0)
摘要:1 .安装git 1、打开git bash。 打开git bash,分别执行以下两句命令 git config --global user.name “用户名” git config --global user.email “邮箱” 1、打开git bash。 2、使用cd ~/.ssh可以查看是否 阅读全文
posted @ 2021-08-25 10:50 Hxf_007 阅读(3205) 评论(0) 推荐(1)
摘要:1.创建本地分支 git branch 分支名,例如:git branch 2.0.1.20120806 注:2.0.1.20120806是分支名称,可以随便定义。 2.切换本地分支 git checkout 分支名,例如从master切换到分支:git checkout 2.0.1.2012080 阅读全文
posted @ 2020-11-20 18:29 Hxf_007 阅读(158) 评论(0) 推荐(0)
摘要:操作方法 * 在项目根目录创建一个 .gitignore文件* 打开.gitignore文件,进行编辑,将忽略的文件写在这个文件中 忽略文件内容说明 # 表示此为注释,将被Git忽略 1.txt 表示忽略1.txt 文件 *.txt 表示忽略所有 .txt 结尾的文件 !2.txt 不忽略2.txt 阅读全文
posted @ 2020-11-10 14:35 Hxf_007 阅读(79) 评论(0) 推荐(0)