I want to create a git repo on my linux box that I can push to or pull from, rather than an externally hosted one like on github. That is to say, I’d need both the local and remote repos to be on the same machine.
Does anyone know how I’d go about doing that?
Thanks.
Just create a directory somewhere that will act as the ‘remote’ repository. Run
git init --barein that directory. Then, you can clone that repository by doing a git clone –local /path/to/repo. Now you have both a local and ‘remote’ repository on the same machine and you can push to the remote repository whenever you like.