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/

posted @ 2017-10-18 17:13  PyJava老鸟  阅读(179)  评论(0编辑  收藏  举报