一看就懂的博客,给大家安利一下Git命令
1、在一个空仓库中提交
echo "# ML" >> README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin xxxxxxxxxxxx
git push -u origin master
2、在一个已存在的仓库中提交
git remote add origin xxxxxxxxxx
git push -u origin master
3、xxxxxxx在哪里?
4、创建分支并提交分支
git branch branch
git checkout branch
git add .
git commit -m branch
git push origin branch