Is there a way to share my git repository that is on my computer with other users?
I do not want to use GitHub, I just want to share the repository so the other user can see the code and commits.
Is there a way to share my git repository that is on my computer with other users?
I do not want to use GitHub, I just want to share the repository so the other user can see the code and commits.
Rather, you need to understand the difference between a repository (and a working directory and a "bare repo").
When you clone a repository, or start a directory with git init
, it is a working repository. I believe it's what you have on your machine.
The repository is a bit different. You can create it on your machine, using git init --bare
, in another folder.
In short, you will do all the work in the workbook, then you will and pull requests to the repository folder.
When another person wants to work on the project, it will make a project clone on its own machine, and will or pull requests for your machine, where the bare repos .
One of Git's premise is "Everything is local". You do not share the working directory, but the repository with change history, bare repo.