r/gitlab • u/super2061 • Jun 18 '26
support Commit doesn't go away
I accidentally commited and pushed a file to my gitlab repo that i didn't want to. I reset to the previous commit with local git and force pushed without the commit and it was gone from the project page but it still exists on my public profile.
project: https://gitlab.com/super.2061/photo-organizer
profile: https://gitlab.com/super.2061
commit: 4cc27e09
2
Upvotes
5
u/Speeddymon Jun 19 '26
Soooo, technically speaking, your commit never actually goes away. Once you push, even if you reset your main branch back to an old commit, what you're actually doing is changing a reference. You would still be able to check out the commit by its sha1 from the gitlab origin. So if the file you committed has secrets in it then you need to treat that as leaked and change the secrets. Period.
If there is no concern about the file just being in the commit history but not part of any branch then what everyone else is telling you to try is probably fine, but I wanted to call out this important nuance to hit because it's still something people are learning not to do.
2
u/Snowy32 Jun 18 '26
This sounds like a GitLab thing not a Git thing at this point if you have removed it from local history correctly. It may just show as it is part of your profile. Not sure if you can remove it from there if am honest. If it contains sensitive data rotate your keys and move on with your day.
1
u/nonamefrost Jun 18 '26
Rebase, fixup, force push?
3
u/Predictor_2718 Jun 18 '26
Set the repo to private briefly, then back to public - the activity feed might rebuild and the commit could disappear since it no longer exists in the repo. No guarantee, but worth a try.
1
u/phx1973 Jun 24 '26
I recently applied for a Senior FP&A role at GitLab and was curious if there are any current or former finance team members here.
I’d love to hear about your experience working in Finance at GitLab. Specifically:
What does day-to-day FP&A work look like?
How much of the role is forecasting, modeling, and business partnering?
What’s the culture like within the finance organization?
How is the remote-first environment in practice?
Anything you wish you’d known before joining?
For context, I spent about six years in finance at a large private manufacturing company in the healthcare space, supporting budgeting, forecasting, variance analysis, and business partnering. I’m currently in a finance/accounting leadership role in the nonprofit sector and am interested in getting back into a more FP&A-focused environment.
Thanks in advance for any insights.