midwest.social

erogenouswarzone, (edited ) to programmerhumor in I'm going to sit down and actually learn git this week
@erogenouswarzone@lemmy.ml avatar

Great meme, and I’m sure op knows this, but for anyone else who is curious…

007 in theory means:

  • 00: you have already committed your code to your local code base
  • 7: When you try to merge your code with everyone else’s there are 7 files that others have worked on since you last refreshed your local code base.

To resolve this, you need to go file by file and compare your changes with the changes on the remote code. You need to keep the changes others have made and incorporate your own.

You can use git diff file_name to see the differences.

If you have made small changes, it’s easier to pull and force an overwrite of your local code and make changes again.

However multiple people working on the same files is usually a sign of organizational issues with management. Ie, typically you don’t want multiple people working on the same files at the same time, to avoid stuff like this.

If you’re not sure, ask someone that knows what they’re doing before you follow any advice on Lemmy.

aniki,

deleted_by_author

  • Loading...
  • jjjalljs,

    If I get a big conflict and I know my change is trivial, I feel perfectly okay doing git fetch git reset --hard whatever and then reapplying my simple change as a new commit. Sort of a bootleg rebate.

    zalgotext,

    If you use a squash workflow, you’re going to be force pushing a ton.

    Never force git to do anything. If you’re forcing something you’re doing it wrong.

    This is bad advice. Better advice would be “know and understand your tool, and know the consequences of your actions”.

    erogenouswarzone,
    @erogenouswarzone@lemmy.ml avatar

    I hear what you’re saying.

    First, I hard disagree with you. Overwriting my local version of code is a parachute - not an ideal landing, but better than merging by hand.

    Also, my comment was not an attempt to teach everything about git, just to explain what is happening in simple terms, since git requires a lot of experience to understand what those messages mean.

    Haus, to programmerhumor in I'm going to sit down and actually learn git this week
    @Haus@kbin.social avatar

    sccs, rcs, cvs... after that it's a blur of new systems every year or two

    kautau,

    sccs

    1973

    rcs

    1982

    git

    2005

    How long are your years?

    flambonkscious,

    Maybe they’re born on a leap year…

    And a dog?

    pelya,

    Subversion is as good as it can get with centralized version control system.

    CVS is only one step up above FTP file server for all your code.

    wewbull,

    I’d agree if anyone actually used the distributed nature of DVCS

    lily33, to programmerhumor in I'm going to sit down and actually learn git this week

    Learning git is very easy. For example, to do it on Debain, one simply needs to run, sudo apt install lazygit

    Kata1yst,
    @Kata1yst@kbin.social avatar

    LazyGit may actually be black magic from Satan to tempt programmers into sin. And to that I say: 'where is a goat I can sacrifice to my dark lord?'

    Bipta,

    Wow this looks great. Amend an old commit dealing with a rebase? Sign me up!

    zalgotext,

    git rebase -i origin/main (or whatever branch you’re rebasing on), then read the instructions that come up in the editor window

    corytheboyd,
    @corytheboyd@kbin.social avatar

    Read… instructions? I love teaching people that git very often prints out what you should do next.

    git: “to continue, resolve conflicts, add files, and run rebase —continue”
    dev: …time to search stack overflow

    All that said… just use lazygit. It does help to know CLI git first to put things in context, but if you do, no need to punish yourself every day by not using a UI.

    Skullgrid, to programmerhumor in I'm going to sit down and actually learn git this week
    @Skullgrid@lemmy.world avatar

    …not by choice, because if I don’t I’ll lose my job

    DarkwinDuck, to programmerhumor in I'm going to sit down and actually learn git this week

    So you’re going to git gud?

    brothershamus,
    @brothershamus@kbin.social avatar

    git out

    UNWILLING_PARTICIPANT,

    git your pants

    UlyssesT, to random in Anti-Vax Cringtian

    Coptium. kelly

    HubertManne, to random in Remember when they used to hide there bigotry
    @HubertManne@kbin.social avatar

    How long ago was that social media post. It was from season 1.

    Doug,

    Looks like six years in a little more than a week, based on the timestamp at the bottom of the screenshot

    HubertManne,
    @HubertManne@kbin.social avatar

    ah I missed that. thanks.

    mojo, to random in Anti-Vax Cringtian

    This definitely looks like satire

    eva_sieve, to risa in He tries so hard because he doesn't want to be remembered as "the other Captain Ransom"

    minor bit of pedantry, a minute isn’t that silhouette the Kelvin-verse Enterprise?

    wjrii, to risa in I think I know why this episode was set in Toronto
    @wjrii@kbin.social avatar

    Star Trek must have got annoyed when I repeatedly referred to The Expanse as "the apotheosis of Toronto warehouse sci-fi."

    ininewcrow, to risa in I think I know why this episode was set in Toronto
    @ininewcrow@lemmy.ca avatar

    Cold? … that looks like a warm afternoon in August in Toronto. This is what cold in Toronto looks like.

    https://lemmy.ca/pictrs/image/10975232-8ae2-4aa9-8905-3ccc1008bb97.jpeg

    bionicjoey, to risa in He tries so hard because he doesn't want to be remembered as "the other Captain Ransom"

    Glutes are cute, but obliques are for freaks

    QuizatzHaderach, to risa in He tries so hard because he doesn't want to be remembered as "the other Captain Ransom"
    stephfinitely,

    Ive never hated something more

    JWBananas,
    @JWBananas@startrek.website avatar
    Stamets, to risa in I think I know why this episode was set in Toronto
    @Stamets@startrek.website avatar

    Man… that episode got me so hype. When they popped out there I immediately started shouting. I know that fucking alley. Recognizing all the outdoor stops was a trip and a half. Have I seen tons of movies with Toronto in it? Sure. Pretty sure I’m in a couple of 'em. But in STAR TREK?!

    yay

    FlyingSquid, to risa in I think I know why this episode was set in Toronto
    @FlyingSquid@lemmy.world avatar

    Maybe, but I hear Toronto is the epicenter of the ketracel white trade.

    bionicjoey,

    Ketracel White, now with maple flavour!

    ininewcrow,
    @ininewcrow@lemmy.ca avatar

    Ketracel White Poutine!

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • uselessserver093
  • Food
  • aaaaaaacccccccce
  • test
  • CafeMeta
  • testmag
  • MUD
  • RhythmGameZone
  • RSS
  • dabs
  • KamenRider
  • Ask_kbincafe
  • TheResearchGuardian
  • KbinCafe
  • Socialism
  • oklahoma
  • SuperSentai
  • feritale
  • All magazines