简易的命令行入门教程:
Git 全局设置:
git config --global user.name "山风"
git config --global user.email "[email protected]"
创建 git 仓库:
git init
touch README.md
git add README.md
git commit -m "first commit"
git remote add origin xxx (xxx -> 仓库地址) 关联远程仓库的橙汁
git push -u origin master (设置第一次后面使用git push 即可push)
已有仓库?
cd existing_git_repo
git remote add origin xxx(仓库地址)
git push -u origin master