I need to create a central Git repository but I’m a little confused…
I have created a bare repository (in my git server, machine 2) with:
$ mkdir test_repo
$ git --bare init
Now I need to push files from my local repository (machine 1) to the bare repository (machine 2). I have access to machine 2 by SSH. The thing is that I think I don’t understand the concept of a bare repository…
What is the right way of storing my code in the bare repository? How can I push changes from my local repository to the bare repository?
Is the right way of having a central repository to have a bare repository?
I’m a little confused with this subject. Please give me a clue on this.