git move files


I added and pushed a bunch of files into my repository, but now I need to put it into a subfolder.



Git is smart and will find the files you moved.  Do the following:

$ mkdir newFolder
$ mv oldFolder newFolder
$ git rm -r oldFolder
$ git add newFolder

keywords: git move files to another folder

Tagged with:

Leave a Reply

Your email address will not be published. Required fields are marked *