得之我幸 失之我命

when someone abandons you,it is him that gets loss because he lost someone who truly loves him but you just lost one who doesn’t love you.

git push 免输入账号和密码方法

git push免输入账号和密码方法

方法一:

  1. 创建文件.git-credentials
  2. 进入C:\Users\用户名\,编辑文件,输入并保存
    1
    https://{username}:{password}@github.com
  3. 在git终端下输入生效
    1
    git config --global credential.helper store
  4. 检查是否生效,打开~/.gitconfig文件,会发现多了一项
    1
    2
    [credential]
    helper = store

方法二:

  1. 在windows中添加一个HOME环境变量,变量名:HOME,变量值:%USERPROFILE%
  2. 创建git用户名和密码存储文件
    进入%HOME%目录,新建一个名为_netrc的文件,文件中内容格式如下:
    1
    2
    3
    machine {git account name}.github.com
    login your-usernmae
    password your-password
  3. 新打开git bash即可,无需再输入用户名和密码

be yourself, everyone else is already taken.