I'm not sure of the question, so here are two answers :
If you want to move your repository :
Simply copy the whole repository (with its .git
directory).
There is no absolute path in the .git
structure and nothing preventing it to be moved so you have nothing to do after the move. All the links to github (see in .git/config
) will work as before.
If you want to move files inside the repository :
Simply move the files. Then add the changes listed in git status
. The next commit
will do the necessary. You'll be happy to learn that no file will be duplicated : moving a file in git is almost costless.