1.生成SSH,关联账户
右键 git bash here ,输入 git init
$git config --global user.name “yourname”
$git config --global user.email “youemail”
$ssh-keygen -t rsa -C “youremail@example.com”
应该会有提示,一路回车即可
登录github,进入setting ->SSH keys添加
2.创建本地库,并连接远程库
通过git pull
1.新建项目文件夹,进入
2. 右键 git bash here ,输入 git init
3. 链接远程库 git remote add origingit@github.com:buctcs1701-SEdesign/SEdesignLibraryPlatfrom.git
4. git pull origin master ,初次使用,要求设置密码,可设置为空,三次回车
通过git clone
- 右键 git bash here ,输入 git init
- git clone git@github.com:buctcs1701-SEdesign/SEdesign-LibraryPlatfrom.git
- 进入 SEdesign-LibraryPlatfrom文件夹
- 链接远程库 git remote add origin git@github.com:buctcs1701-SEdesign/SEdesignLibraryPlatfrom.git
3.修改本地库内容
4.上传到远程库
$git add xxxxx.xxx …
$git commit -m “注释”
git push origin master