1
xcv58 2014 年 11 月 4 日
git remote add ?
|
3
MajestySolor OP @xcv58
@yfdyh000 感谢回复 我用 git remote add 分别连接了github和coding.net,但是push的时候要分开输入帐号密码,如何设置能以后不再问我要帐号密码呢,git 菜鸟头有点晕~~ |
4
jybox 2014 年 11 月 4 日 |
5
msg7086 2014 年 11 月 4 日 @MajestySolor 用SSH连接,不要用HTTPS。coding默认就塞https让我感到很心塞。
|
6
xcv58 2014 年 11 月 4 日 @MajestySolor 你不用 key 吗?
|
7
lightening 2014 年 11 月 4 日 @msg7086 GitHub 现在推荐使用 HTTPS 了。https://help.github.com/articles/which-remote-url-should-i-use/
如何在 HTTPS 下将密码存入操作系统 keychain: https://help.github.com/articles/caching-your-github-password-in-git |
8
MajestySolor OP |
9
MajestySolor OP |
10
xcv58 2014 年 11 月 4 日 |
11
msg7086 2014 年 11 月 4 日
@lightening 但是好像没看到推荐HTTPS的理由……
|
12
MajestySolor OP @xcv58 非常感谢
|
13
networm 2014 年 11 月 4 日 via iPad
生成 SSH key 的时候不要输密码,直接按回车跳过
|
15
Oishi 2014 年 11 月 4 日
@msg7086 These URLs work everywhere--even if you are behind a firewall or proxy.
|
16
boom11235 2014 年 11 月 4 日
@lightening 为什么推荐使用HTTPS啊?
|
17
xcv58 2014 年 11 月 4 日
@MajestySolor 客气。
|
18
wesley 2014 年 11 月 4 日
git可以把账号密码保存到本地文件中,不用key也行
linux下是 ~/.netrc win下是 我的文档/_netrc 文件内容像这样: machine git.oschina.net login you git account password your password |
19
mingzhi 2014 年 11 月 4 日
我的做法是非常dirty:
直接改.git/config 文件 在 remote "origin" 加url = "..." |
20
jsq2627 2014 年 11 月 4 日
我也看到现在很多地方推荐说用HTTPS,有点不解。
HTTPS也是有办法保存密码的: https://help.github.com/articles/caching-your-github-password-in-git/ 最后还是推荐用图形客户端。 |
21
lightening 2014 年 11 月 4 日 via iPhone
|