1.检查是否安装
$git --version
2.配置
$git config --global user.name "name"
$git config --global user.email "[email protected]"
3.创建SSH
$ssh-keygen -t rsa -C "[email protected]"
4.与远程库建立关联
$git remote add orgin https://github.com/user/repo.git
5.提交
$git push [-u] origin master
6.从远程库克隆
$git clone https://github.com/user/repo.git
时间: 2024-11-07 00:06:46