![]() ![]() This operation reset current HEAD to the specified state. In above output letter D appears before the README which indicates that file has been removed from repository. To remove file execute following command: $ git rm README Now let us check the repository status: $ git status -sĪbove output shows that file has been moved to new directory.Īs name suggests, delete operation removes file/directory from Git. In this example, we have created new directory and move file to that directory. To move file execute following command: $ mkdir new-dir Move operation is used to move file from one directory location to another. NOTE: To make these changes in remote repository execute git push command. Next column shows the old and new file name. In above output letter R appears before README, which indicates file has been renamed. Now let us check the repository status: $ git status -s To rename file execute following command: $ git mv README NEW-README As name suggests rename operation instructs Git that traced file has been modified. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |