删除远程文件的命令:
git rm -r --cached dirname
git commit -m "delete file"
git push origin master
如,要删除FragmentTabLayout-master项目文件
git rm -r --cached FragmentTabLayout-master
git commit -m "delete file"
git push origin master
提交代码到github上的命令
git add dirname
git commit -m "first commit"
git push origin master
如, 要提交项目FragmentTabLayout-master项目文件到github上
git add FragmentTabLayout-master
git commit -m "first commit"
git push origin master