Creating a git read-only project

I just finished an open source project for the company I interned with. There, SVN was used to manage the project, and I made all the commits to the repository to which I was assigned.

Now I'm interested in doing the work that I have done on Github. Although I can easily add a project to Github, I am worried about licensing issues. I spoke with my project manager, and he said that it would be better if I allowed the project to be only in the company repository, as I suspected. He is right, of course, but all my projects are on Github, and when I need to show someone the work that I did, whether for my next job or internship, I want all this to be a centralized place. And being a non-student, showing the work that I did, whether it was an amateur project or something significant problem (this is what made me go through an internship in the first place).

Is there a way to make my project read-only so that no commits are made? In this way, I can ensure that my company is well with him, as I can convince them. Their only problem with the fact that I accept the project on Github is that it makes it difficult for them to control the changes that I agree is a good reason. Or is there any way to synchronize commits between the Github project and the company repository (of course, I have access to it, but the stranger will not).

I hope I made it clear why I want to do this. Of course, I can give an SVN link, but I was very happy to have everything in one place.

+7
git github
source share
2 answers

Github does not allow other people to make changes to your project if you do not allow them. There are two ways to modify a project in github:

  • Provide administrator with a commit bit
  • Run the project, commit on your own copy, and then send a โ€œpull requestโ€ to the original administrator who will consider returning your commit to the central repo.

As you can see, if you put your project on github, you still have full control over your source. [You cannot prevent people from formatting your project and managing their own version, but if it opens the source code, you still cannot stop it.]

+11
source share

If you pay for a GitHub account, you can make the repository private so that no one can see or develop it. There is no systematic way that I know to limit your ability to make repos that you own.

+1
source share

All Articles