github免密码push
生成 SSH Key:
1 |
|
提示直接回车
成功的话会在 ~/ 下生成 .ssh 文件夹
1 |
|
到 github 上,进入 Account => Settings => SSH and GPG keys => New SSH key添加key
验证是否成功:
1 |
|
配置本地仓库(如果存在):
修改本地仓库中的 .git/config
把https格式url改为远程仓库地址
(如:url = git@github.com:YourAccount/YourRepo.git)
本博客所有文章除特别声明外,均采用 CC BY-SA 4.0 协议 ,转载请注明出处!