this post was submitted on 20 Dec 2023
80 points (96.5% liked)

Git

2877 readers
10 users here now

Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency.

Resources

Rules

  1. Follow programming.dev rules
  2. Be excellent to each other, no hostility towards users for any reason
  3. No spam of tools/companies/advertisements. It’s OK to post your own stuff part of the time, but the primary use of the community should not be self-promotion.

Git Logo by Jason Long is licensed under the Creative Commons Attribution 3.0 Unported License.

founded 1 year ago
MODERATORS
 
top 7 comments
sorted by: hot top controversial new old
[–] thanks_shakey_snake@lemmy.ca 8 points 10 months ago

I appreciate that she acknowledges that rebase is a weird thing to do to a branch. I know it's an ordinary part of many folks' workflows, but it's such a footgun.

[–] Ferk@kbin.social 4 points 10 months ago* (last edited 10 months ago) (1 children)

Many hosts allow you to set rules to protect branches from getting their commits removed in the remote (in fact, I think that's the default for gitlab main branches) or to prevent people from pushing their commits to them directly.
I expect even "the main branch has to stay more or less in sync with origin/main" can be automated... though it might not be what you always want, depending how you work.

[–] thanks_shakey_snake@lemmy.ca 5 points 10 months ago

I think that's treading into "GitLab/Hub/Bitbucket/etc. are not git" territory. Good feature, but not in the product that the post is about.

Still glad you mentioned it, though-- Maybe someone just learned about it because of you.

[–] apd@programming.dev 2 points 11 months ago (1 children)

is reflog very unfriendly UI? what would make it better?

[–] pelotron@midwest.social 1 points 10 months ago

Reflog has saved my ass many times.