Useful Git Commands for me

查看Git追踪的文件
git ls-files

 

移除远程仓库的文件夹

git rm -r --cached some-directory
git commit -m "Remove the now ignored directory some-directory"
git push origin master

 

更新gitignore文件

git rm -r --cached .
git add -A
git commit -m "update .gitignore"

posted @ 2018-01-29 10:43  VVingerfly  阅读(161)  评论(0编辑  收藏  举报