Keyboard shortcuts

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

Move a file

  • mv
  • move
  • rename
$ mv config.pl app.pl
$ git status
$ git add app.pl
$ git rm config.pl
($ git add -u)
# On branch master
# Changes to be committed:
#   (use "git reset HEAD <file>..." to unstage)
#
#   renamed:    config.pl -> app.pl
#
$ git commit -m "rename"

$ git mv old.pl new.pl

Try also moving a file and changing its content a bit.