Can a git repository be copied between servers?
Yes, it can be copied without a problem.
Would any issues arise if I simply copied the repo rather than reinitializing it?
No, but of course you can always try it to be sure.
My recommendation on the other hand would be to do it more properly. On your new server do a git init --bare
and from your old repository push everything to the new server and let git handle all the copy (which is also compressed by the way, so it's faster).
A summary would be:
# on new server:
$ mkdir repo && cd repo && git init --bare
# on old server:
$ cd repo
$ git remote add new_server path/to/new/server
$ git push new_server --mirror
Note that --mirror
makes the new server a mirror of this server, which means it pushes all the branches, tags, etc.