I've been trying to search online for my problem but all answers are github related.
I have an existing project within my folder on my pc, and I want to push it to a new location to use as server for my incoming collaborators. The remote git project will be on a networked drive of which I know the location. So no Github or similar.
I would say I need the reverse of a clone instruction: I need to "clone" upwards into a new location. Thanks!
EDIT:
I did the following:
cd /path/to/new/location
git init --bare .git
cd /path/to/existing/repo
git remote add origin /path/to/new/location/myrepo/.git
git push origin --all
As expected I do get the new "server" up and running.
BUT I would like to see also my files in there. I know it is due to the --bare
option.
Is there an alternative to get all of the repository, including the working directories, on the server? Although I am not going to use github, when you do upload a repository onto it, you do see the files in the web app. I'd like the same thing, only locally.
I know I am a newbie, but please if you could not just answer me with just a link explaining the difference between bare and non-bare repositories. I have read many and I'm still not finding the solution to my problem.
Please explain the solution as if you were talking to a 5 years old :-) Thank you