git安装与下载
下载git
?https://git-scm.com/downloads
?安装git
一路默认的即可
github配置连接
生成密钥
ssh-keygen -t rsa -C "your_email@youremail.com"
**Your identification has been saved in /c/Users/liao/.ssh/id_rsa** **Your public key has been saved in /c/Users/liao/.ssh/id_rsa.pub**
配置github
登录github后,头像-settings-SSH and GPG keys 然后New SSH key,title随便写,文本编辑器打开id_ras.pub,复制到key中。 连接验证:
ssh -T git@github.com
第一次输入后,还需要输入yes,然后看到**You've successfully authenticated, but GitHub does not provide shell access**就已成功! **配置username和email,这个属性用于Github记录是谁commit的。** ?
git config --global user.name "your name"
git config --global user.email "your_email@youremail.com"
idea使用
setting-git,填入E:\git\Git\bin\git.exe 然后setting-github在idea中登录Github 关闭当前项目后,回到最开始打开项目的页面,就可用clonegithub上的项目,然后就可使用了 简单的说明,git commit本机保存,Git push,推送到Github保存。
|