obsidian/笔记文件/白日梦游戏/白日梦游戏_2022年7月19日/git clone,git push命令使用指定账号用户名和密码.md
2025-03-26 00:02:56 +08:00

442 B

示例

邮箱 mj@qq.com
密码: 123
仓库: http://git.test.com/abc/demo
注意: 邮箱中的 @ 要使用 %40 代替。仓库 URL 不需要 http:// 。

1、git clone

git clone http://邮箱(或用户名):密码@仓库

$ git push http://mj%40qq.com:123@git.test.com/abc/demo

2、git push git push http://邮箱(或用户名):密码@仓库 分支

$ git push http://mj%40qq.com:123@git.test.com/abc/demo master