leanpub, to devops
@leanpub@mastodon.social avatar

Learn Git, Bash, and Terraform the Hard Way https://leanpub.com/b/learngitbashandterraformthehardway by Ian Miell is the featured bundle on the Leanpub homepage! https://leanpub.com #DevOps #SoftwareEngineering #ComputerProgramming #Git #Software #CloudComputing

leanpub, to random
@leanpub@mastodon.social avatar

Git Prodigy: Mastering Version Control with Git and GitHub https://leanpub.com/git-prodigy by Ebenezer Don is the featured book on the Leanpub homepage! https://leanpub.com

finestructure, to random
@finestructure@mastodon.social avatar

Folks who squash their merges, I’m curious why you are making that trade-off. I’m guessing the pro argument is a cleaner merge graph?

The big argument against it for me is that you lose granularity for git bisect. I've often been able to narrow down breakage (sometimes long past the merge) due to individual commits in the merge. If I'd merged in a giant blob all I'd have had to go by is that giant blob. (1/2)

finestructure,
@finestructure@mastodon.social avatar

As to the “pro” argument: tooling (like for instance the excellent @fork_dev, see the screenshot) can allow you to fold your merges so they look squashed. I feel like that's the perfect combination - overview on demand without loss of granularity. (2/2)

dgregor79,
@dgregor79@sfba.social avatar

@fabianfett @finestructure I recently landed a PR to SwiftPM where one commit in particular was of the form “temporarily work around a bug in an old Swift compiler.” The change was otherwise nonsensical and would have been reverted trivially in the future… except that it all got squashed together with a pile of good code because that’s how SwiftPM is configured. I hate the destruction of history like that; it makes it harder to undo parts of a change when that’s needed (which is common for us), and robs us of the logical flow of how a change was introduced. I cannot be convinced otherwise.

Ric, to opensource
@Ric@awscommunity.social avatar

I've just published my starters guide to : https://gitlab.com/ric_harvey/git-guide it's free and licensed under the @creativecommons

robrich, to random
@robrich@hachyderm.io avatar

When you are gonna two branches after a long time

brianb, to random
@brianb@fosstodon.org avatar

question:

I have a branch that says it's up to date with the upstream (fork of a repo). I'm trying to contribute a patch, but my commit history in the PR has 26 commits from things that have already been merged rather than my changes from the current head.

Is there an acceptable way to clean up that history so my PR is clean?

nlovsund,
@nlovsund@mastodon.acc.sunet.se avatar

@brianb a few options:

  1. Clean branch with only your changes

  2. A pull --rebase (fast-forwarding) so that you'll get to a state which is 1.

notsle, to random
@notsle@kzoo.to avatar

Manager: Lets teach a non-developer office worker how to push code to git. "It's just clicking a few buttons. I've done it before. It's not that hard."

Me: :excuse_me:

nurkiewicz, to random
@nurkiewicz@fosstodon.org avatar

I run this command several times a day to keep my branch up-to-date with main:

git checkout $(git_main_branch) && \
git pull && \
git checkout - && \
git rebase -

6d03, to fediverse
@6d03@mathstodon.xyz avatar

federate decentralised repos through the .

twipped, to random
@twipped@twipped.social avatar

Ya love to see it.

muxelplexer,
@muxelplexer@larkspur.one avatar

@twipped aslong as this is a commit and not a pull request :floofWoozy:

twipped,
@twipped@twipped.social avatar

@muxelplexer it was actually a pretty easy PR, only three files had changes that weren’t total deletions

opdavies, to random
@opdavies@mastodon.social avatar
pwaring,
@pwaring@fosstodon.org avatar

@opdavies I remember @lornajane showing me (as part of a talk I think) git add -p years ago and it totally changed my development life for the better.

civodul, to random
@civodul@toot.aquilenet.fr avatar

“Authenticate your checkouts!”
https://guix.gnu.org/en/blog/2024/authenticate-your-git-checkouts/

Yup! Time to consider doing it!

frankel, to random
@frankel@mastodon.top avatar
andrewfeeney, to random
@andrewfeeney@phpc.social avatar

Is there way to make git add -p include new files?

nicosomb, to random French
@nicosomb@piaille.fr avatar

J'avais un bug à retrouver dans potentiellement 8 mois de développement sur #PrestaShop.

Et donc, #LundiConfession, c'est la première fois que j'utilisais git bisect.
Je connaissais, mais jamais eu réellement besoin de l'utiliser. Si tu veux savoir ce que c'est, tu peux lire ça : https://delicious-insights.com/fr/articles-et-tutos/git-bisect/

#git #tip

  • All
  • Subscribed
  • Moderated
  • Favorites
  • megavids
  • thenastyranch
  • rosin
  • GTA5RPClips
  • osvaldo12
  • love
  • Youngstown
  • slotface
  • khanakhh
  • everett
  • kavyap
  • mdbf
  • DreamBathrooms
  • ngwrru68w68
  • provamag3
  • magazineikmin
  • InstantRegret
  • normalnudes
  • tacticalgear
  • cubers
  • ethstaker
  • modclub
  • cisconetworking
  • Durango
  • anitta
  • Leos
  • tester
  • JUstTest
  • All magazines