git仓库与裸仓库
git status 显示乱码

git免密码(https方式)

妙音 posted @ 2015年2月14日 17:33 in git , 11701 阅读

    使用git push提交时,每次都要输入密码,次数多了,感觉挺麻烦. 如果git以ssh协议通讯,免密码可以用ssh公钥设置免登录。如果git时以https方式访问呢,该怎么办?下面方式可以解决这个问题.

 
* 新建文件并保存密码
touch ~/.git-credentials
vim ~/.git-credentials
添加内容
https://{username}:{passwd}@github.com
 
* 添加git配置
 
执行下面命令添加配置
git config --global credential.helper store
 
* 查看~/.gitconfig文件变化
 
~/.gitconfig文件多出下面配置项
[credential]
    helper = store
 
再尝试git push不再需要输入密码.
 
Avatar_small
caimaoy 说:
2016年2月01日 12:16

可行,原理之后再摸索一下

Avatar_small
Robinjackl 说:
2020年3月18日 23:17

He would eventually earn his PhD, in Statistics, from Cornell University. 먹튀사이트

Avatar_small
smm panel 说:
2020年3月22日 16:45 Joining online communities can be a great way to enhance your online brand and cultivate a great, engaging image through a well-crafted social media marketing campaign.   [url=https://smmpanellist.com/]smm panel[/url]

 

Avatar_small
zeeshan 说:
2020年3月22日 16:45 Joining online communities can be a great way to enhance your online brand and cultivate a great, engaging image through a well-crafted social media marketing campaign.   <a href="https://smmpanellist.com/">smm panel</a>

 

Avatar_small
zeeshan 说:
2020年3月22日 16:46

When conducting the audit, here are some essential questions to answer so you'll start you social campaign on the right road - eliminate wasted time and money.   smm panel

Avatar_small
Lycamobile lottery w 说:
2020年3月23日 06:53

A debt of gratitude is in order for setting aside an ideal opportunity to talk about this, I feel firmly about it and adoration adapting more on this point. In the event that conceivable, as you pick up mastery, would you brain overhauling your website with more data? It is to a great degree supportive for me.

Avatar_small
Samsung Lottery Winn 说:
2020年3月25日 02:36

New site is solid. A debt of gratitude is in order for the colossal exertion.

Avatar_small
Nachum E 说:
2020年3月26日 00:09

A debt of gratitude is in order for the decent blog. It was extremely helpful for me. I'm cheerful I discovered this site. Much obliged to you for offering to us,I too dependably discover some new information from your post.

Avatar_small
eyal nachum 说:
2020年3月27日 00:51

I think this is a standout amongst the most huge data for me. Also, i'm happy perusing your article. However, ought to comment on some broad things, The site style is impeccable, the articles is truly extraordinary : D. Great job, here's to you

Avatar_small
Department of Cardia 说:
2020年3月27日 19:36

This was truly a fascinating subject and I kinda concur with what you have specified here!

Avatar_small
Vilnius 说:
2020年3月28日 18:57

I recently came across your blog and have been reading along. I thought I would leave my first comment. I don’t know what to say except that I have enjoyed reading. Nice blog, I will keep visiting this blog very often.


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter