Red Hat Ent erprise Linux 6 Developer G uide To proceed and actually rename the content in the repository, commit the changes as described in Section 2.3.6, â Committing Changesâ . De le t ing File s and Dire ct o rie s To delete an existing file from a G it repository, change to the directory with your local G it repository and type the following at a shell prompt: g i t rm file. . . Replace file with the file or files you want to delete. This command deletes all selected files and marks them as ready to be deleted form the G it repository. Similarly, to delete all files that are stored in a certain directory from a G it repository, type: g i t rm -r directory. . . Replace directory with the directory or directories you want to delete. This command deletes all selected directories and marks them as ready to be deleted from the G it repository. To proceed and actually delete this content from the repository, commit the changes as described in Section 2.3.6, â Committing Changesâ . 2.3.5. Viewing Changes Vie wing t he Curre nt St at us To determine the current status of your local G it repository, change to the directory with the repository and type the following command at a shell prompt: g i t status This command displays information about all uncommitted changes in the repository (new fi l e, renamed , d el eted , or mo d i fi ed ) and tells you which changes will be applied the next time you commit them. For information on how to commit your changes, see Section 2.3.6, â Committing Changesâ . Vie wing Diffe re nce s To view all changes in a G it repository, change to the directory with the repository and type the following at a shell prompt: g i t d i ff This command displays changes between the files in the repository and their latest revision. If you are only interested in changes in a particular file, supply its name on the command line as follows: g i t d i ff file. . . Replace file with the file or files you want to view. 2.3.6. Commit t ing Changes 44