本地git关联远程github

1、初始化本地目录为git目录
在该目录下打开git bash here,命令:git init
2、初始化本地id_rsa.pub文件,
键入命令:ssh-****** -t rsa -C “*******@163.com”
3、命令我会在指定目录下生成id_rsa.pub文件
4、在github中setting目录下,配置ssh key,将id_rsa.pub的内容粘贴到图中
本地git关联远程github
5、测试与github是否相同,命令: ssh -T [email protected]
本地git关联远程github
6、idea中添加github账号密码
本地git关联远程github
7、如果该工程为首次提交,则需要在github中share到github中即可
本地git关联远程github

相关文章:

  • 2021-07-04
  • 2022-12-23
  • 2021-12-03
  • 2021-06-08
  • 2022-12-23
  • 2021-10-16
  • 2022-12-23
  • 2021-09-23
猜你喜欢
  • 2021-06-05
  • 2021-04-16
  • 2021-09-08
  • 2022-12-23
  • 2021-05-16
  • 2021-07-23
相关资源
相似解决方案