配置git, Git Bash终端
1
2
git config --global user.name "name"
git config --global user.email "email"
查看配置是否成功
1
git config --list
将 git 仓库 https://github.com/sg1000000/the-craft-of-selfteaching 克隆到本地
1
git clone https://github.com/sg1000000/the-craft-of-selfteaching
查询远程仓库路径
1
git remote -v
设置上游代码库 upstream
1
git remote add upstream https://github.com/selfteaching/the-craft-of-selfteaching.git
上传同步到github
1
2
3
git add .
git commit -m '说明' //说明可替代为其他任意
git push