Command:
git rm -r --cached folderName/
Demo:
Changes to be committed:
(use "git rm --cached <file>..." to unstage)
new file: .gitignore
new file: Method.py
new file: SkipConfig.py
new file: TestGvaBasic.py
new file: config.ini
new file: log/adb.log
new file: log/execute.log
new file: log/main.log
new file: log/suite.log
$ git rm -r --cached log/
rm 'log/adb.log'
rm 'log/execute.log'
rm 'log/main.log'
rm 'log/suite.log'
Changes to be committed:
(use "git rm --cached <file>..." to unstage)
new file: .gitignore
new file: Method.py
new file: SkipConfig.py
new file: TestGvaBasic.py
new file: config.ini
网友评论