Created
February 8, 2014 02:21
-
-
Save JingwenTian/8875701 to your computer and use it in GitHub Desktop.
Git文件删除操作
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#删除sth目录下文件 | |
git rm sth/* -r | |
#然后commit | |
git commit -a -m 'remove sth' | |
#再次push就可以了 | |
git push -u origin master | |
#可以增加忽略文件: | |
vim .gitignore | |
#在文件中添加 | |
sth/**/* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment