How do I commit all deleted files in Git?
2014-03-11 21:08
323 查看
Try this:
This tells git to automatically stage tracked files -- including deleting the previously tracked files.
If you are using git 2.0, you should now use:
Warning, starting git 2.0 (mid 2013), this will stage files on the whole working tree. If you want to stage file only under your current path with that working tree, then you need to use
$ git add -u
This tells git to automatically stage tracked files -- including deleting the previously tracked files.
If you are using git 2.0, you should now use:
$ git add -u :/
Warning, starting git 2.0 (mid 2013), this will stage files on the whole working tree. If you want to stage file only under your current path with that working tree, then you need to use
$ git add -u .
相关文章推荐
- How to .gitignore all files/folder in a folder, but not the folder itself?
- How do I list all tables/indices contained in an SQLite database
- [转]How to Use xp_dirtree to List All Files in a Folder
- How can I recover a file that I deleted in my local repo from the remote repo in Git?
- How do I pause all animations in a layer tree?
- how to clone all remote branches in git
- How do I remove files saying “old mode 100755 new mode 100644” from unstaged changes in Git?
- check how many files are added or modified or deleted by git command and python
- Git how to restore deleted files
- git 报错 How do I remove files saying “old mode 100755 new mode 100644” from unstaged changes in Git?
- In C how do you redirect stdin/stdout/stderr to files when making an execvp() or similar call?
- Restore Deleted Files In Git
- How do I list the files in a directory?
- How can I remove all "name" files in all of my subdirectories on Linux
- git版本回退 How do I use 'git reset --hard HEAD' to revert to a previous commit?
- How do I write to files using cheerio and request in node?
- How do I list all fields of an object in Objective-C?
- How to place all WPF commands and related events centrally in a static class
- vs 2012 $(CleanWPPAllFilesInSingleFolder) 创建项报错
- How to create MFC applications that do not have a menu bar in Visual C++(MFC单文档和多文档程序中去掉菜单栏)(转)