git 简单使用速查

git config --global user.name "Zhang Zhang"
git config --global user.email "zhang_zhang@live.com"
git config --global credential.helper cache
git config --global credential.helper 'cache --timeout=3600'


创建工作目录
git init
git remote add origin https://github.com/iieplatform/***.git
git pull origin master(先弄下来再push)
 
git add 你加入的文件(或者git add .)
git commit -am 'first commit'

git push origin master

删除某个目录(记住,远程更新都是基于本地的索引而不是实际存在的文件)
git rm -r ***
git commit -m "***"
git push orgin master即可
原文地址:https://www.cnblogs.com/zhangzhang/p/2851108.html