Skip to content

Instantly share code, notes, and snippets.

@JingwenTian
Created February 8, 2014 02:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JingwenTian/8875701 to your computer and use it in GitHub Desktop.
Save JingwenTian/8875701 to your computer and use it in GitHub Desktop.
Git文件删除操作
#删除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