摘要: #config 文件位置 配置文件的权重(是指多种情况优先使用谁)是仓库 > 用户 > 系统。 仓库级配置文件:在所创建仓库下 ./.git/config 针对该仓库。 在进入仓库的情况下, 你可以传递 --local 选项让 Git 强制读写此文件,默认情况下用的就是它。 用户级配置文件:~/.g 阅读全文
posted @ 2022-09-30 10:39 keleman 阅读(36) 评论(0) 推荐(0) 编辑
摘要: 解决方法: git config --global credential.helper store 生成config后第一次提交还是要求验证用户名和密码,以后就可以直接push了 #没有测试 阅读全文
posted @ 2022-09-30 10:35 keleman 阅读(63) 评论(0) 推荐(0) 编辑
摘要: #配置用户名和邮箱 git config --global user.name "xxxxxx" git config --global user.email "xxxx@xxx.com" #初始化本地仓库 git init #添加全部已经修改的文件,准备commit 提交 该命令效果等同于Gita 阅读全文
posted @ 2022-09-30 10:35 keleman 阅读(176) 评论(0) 推荐(0) 编辑
摘要: git proxy http代理 git config --global https.proxy http://127.0.0.1:10800 git config --global https.proxy https://127.0.0.1:10800 socks5代理 git config -- 阅读全文
posted @ 2022-09-30 10:27 keleman 阅读(26) 评论(0) 推荐(0) 编辑