Git常用命令


2019/8/15 git

推送拉取的时候记住用户名密码

$ git config credential.helper store
$ git push http://example.com/repo.git
Username: <type your username>
Password: <type your password>

[several days later]
$ git push http://example.com/repo.git
[your credentials are used automatically]
1
2
3
4
5
6
7
8

查看远程仓库

git remote -v
1
Last Updated: 8/16/2019, 12:06:44 PM