git 上传步骤

//上传文件夹到github上
git init
git add .
git commit -m ""
git remote add origin https://...
git push -u origin master


//删除github中某些文件夹
git rm -r --cached some-diretory
git commit -m "remove folder"
git push origin master

.gitignore

#Maven#
target/
#Eclipse#
.settings/
.metadata/
.classpath
.project
Users/

原文地址:https://www.cnblogs.com/QAZLIU/p/7687731.html