search

Home  >  Q&A  >  body text

github - GIT每次都要输入密码

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


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

#.gitignore
/www/Application/Runtime*

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

reply all(5)I'll reply

  • 世界只因有你

    世界只因有你2017-04-26 09:04:07

    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

    reply
    0
  • 世界只因有你

    世界只因有你2017-04-26 09:04:07

    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

    reply
    0
  • 漂亮男人

    漂亮男人2017-04-26 09:04:07

    Connect using ssh

    reply
    0
  • 为情所困

    为情所困2017-04-26 09:04:07

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

    reply
    0
  • 曾经蜡笔没有小新

    曾经蜡笔没有小新2017-04-26 09:04:07

    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

    reply
    0
  • Cancelreply