40
submitted 3 months ago by mac@programming.dev to c/git@programming.dev
you are viewing a single comment's thread
view the rest of the comments
[-] magic_lobster_party@kbin.run 4 points 3 months ago

The post mentions that these are for commits in a merge request before squash. When they’re squashed a proper message is given.

[-] Serinus@lemmy.world 9 points 3 months ago

Sure, but how much of that is justification and backpedaling?

If it's worth a commit, it's worth a description. "Address vulns" "fix config" "remove files". It doesn't take much. Even if it's just "more address vulns".

[-] magic_lobster_party@kbin.run 3 points 3 months ago* (last edited 3 months ago)

Often I commit because I have to jump to another branch, so I want to save my progress. This means I can be in the middle of something, so I write a trash message.

All those messages will disappear anyway after the merge request, because we use a squash policy. I can spend more time thinking of a more proper commit message when writing the merge request.

[-] Hammerheart@programming.dev 7 points 3 months ago
[-] magic_lobster_party@kbin.run 0 points 3 months ago

I don’t like stash for this purpose. What if I have to jump to a different branch a second time? Should I stash again?

It can be difficult to know which stash belongs to which branch. Nah, I rather just commit so I don’t need to bother with that confusion.

[-] sukhmel@programming.dev 3 points 3 months ago

I agree that stash gets lost easier than a branch, but

It can be difficult to know which stash belongs to which branch

you know, stash also has a message to it, and afaik it remembers what branch you were on when stashed

load more comments (4 replies)
load more comments (4 replies)
load more comments (11 replies)
this post was submitted on 19 Jul 2024
40 points (95.5% liked)

Git

2860 readers
1 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