I have a computer (let's call it A) where I've been working on a project and I have all the source code there. I created a local Git repository and I've been doing several commits.
Now I got a new computer (lets call it B that I'd like to set as server for that repo, so that I can be working in computer A and I can push code to B.
If I would start from zero, I would create the repo in B, and then do a git clone
from A. The problem is that I already have the code in A and there are a lot of commits that I can't lose. I would need to somehow copy all code to B, and then import or merge all the commits I had in A, then I could git clone
from A. Does it make any sense?