Git——简易的命令行入门教程

Git 全局设置

git config --global user.name "YourName"
git config --global user.email "YourEmail"

创建 git 仓库

git init
touch README.md
git add README.md
git commit -m "first commit"
git remote add origin xxx(仓库地址 http://....)
git push -u origin master

已有仓库?

git remote add origin https://...(仓库地址)
git push -u origin master