10
submitted 5 months ago by LemmyQuest@lemm.ee to c/opensource@lemmy.ml
  • Can I opensource it in a way where changes is not open to the public?
  • I have google verification file on my git, is it ok to put it in the public?

The platform is gitlab.

you are viewing a single comment's thread
view the rest of the comments
[-] danielquinn@lemmy.ca 7 points 5 months ago

You can always just reset your git history:

$ git reset [your first commit hash]
$ git add .
$ got commit -m "Collapse git history"
$ git push -f
[-] lemmyvore@feddit.nl 2 points 5 months ago

You'd have to collapse all branches not just one, and remove all tags, in order to clear the whole graph.

And of course you have to be allowed to – GitHub can have protected branches, protected tags, and force push protection.

Assuming you're the repo owner and can do all that it still would't affect other people's already existing clones, only new clones.

this post was submitted on 29 Mar 2024
10 points (72.7% liked)

Open Source

30274 readers
259 users here now

All about open source! Feel free to ask questions, and share news, and interesting stuff!

Useful Links

Rules

Related Communities

Community icon from opensource.org, but we are not affiliated with them.

founded 5 years ago
MODERATORS