Remove a file (rm)
$ git rm setup.pl
# On branch master
# Changes to be committed:
# (use "git reset HEAD <file>..." to unstage)
#
# deleted: setup.pl
#
$ git commit -m "remove"
Press ← or → to navigate between chapters
Press S or / to search in the book
Press ? to show this help
Press Esc to hide this help
$ git rm setup.pl
# On branch master
# Changes to be committed:
# (use "git reset HEAD <file>..." to unstage)
#
# deleted: setup.pl
#
$ git commit -m "remove"