github - GIT每次都要输入密码
習慣沉默
習慣沉默 2017-04-26 09:02:07
0
5
741

使用Git提交到github.com,但是很多时候基本上每次都要输入密码


在根目录下架了.gitignore,里面加入忽略目录的名字,但是还是无法忽略

#.gitignore
/www/Application/Runtime*

我已经在github中添加了ssh 密匙了,也在本地有一个SSH密匙,但是还是必须输入密码。
習慣沉默
習慣沉默

reply all(5)
世界只因有你

The key is that you use https, which does not use the ssh channel, so the key is useless. To save the password for https, please refer to http://git.oschina.net/oschina/git-osc/issues/2586, if you want ssh+ Key does not require a password to submit, and the remote branch needs to use the SSH protocolgit@github.com:xx/xx.git

世界只因有你

It is normal to enter the password when pushing. You can take some measures to omit this step:

  • Use SSH instead of https link
  • Add your SSH public key in Github

About the issue of .gitignore:

If you want to ignore all files starting with Runtime under www/Application/ in the project and directory, just remove the / in front of www, / represents the root directory

漂亮男人

Connect using ssh

为情所困

.gitignore’s path is relative to the repo itself.

曾经蜡笔没有小新

Changed the protocol and used git+ssh to configure according to the article http://www.ctrlqun.com/linux_..., everything is OK, no need to re-enter the password

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!