As aliases

alias g-log="git log --graph --format='format:%C(yellow)%h%C(reset) %s %C(magenta)%cr%C(reset)%C(auto)%d%C(reset)'"
alias g-history='gitk --all &'
alias g-checkout='git checkout $(git branch --sort=-committerdate --no-merged | fzf)'
alias g-commit='git citool &'
alias g-amend='git citool --amend &'
alias g-rebase='git rebase --interactive --autosquash'
alias g-pull='git pull --verbose --rebase'
alias g-pushf='git push --verbose --force-with-lease'
alias g-status='git status --ignored'
alias g-clean='git clean -fdx && git reset --hard && git submodule foreach --recursive git clean -fdx && git submodule foreach --recursive git reset --hard'
  • AggressivelyPassive@feddit.de
    link
    fedilink
    arrow-up
    0
    ·
    8 months ago

    That sounds like a solution in desperate need for a problem.

    All the “problems” you described boil down to “switching branches is evil”.

    • lysdexic@programming.dev
      link
      fedilink
      English
      arrow-up
      0
      ·
      8 months ago

      That sounds like a solution in desperate need for a problem.

      It’s ok if you never did any professional software development work. Those who do have to go through these workflows on a daily basis. Some people don’t even understand why version control systems are used or useful, and that is perfectly ok. Those who do work have to understand how to use their tools, and those who don’t can go about their life without even bothering with this stuff.

      • AggressivelyPassive@feddit.de
        link
        fedilink
        arrow-up
        0
        ·
        8 months ago

        And those who don’t immediately insult everyone at the slightest opposition are the ones who get things done.

        Seriously, your line of thinking is exactly the one of those weird colleagues nobody wants to work with, because they insist on their idiosyncratic bullshit.

        The “problem” you described above is - if it exists at all - extremely niche, and hardly anything anyone should solve with git, but with processes.

        Maybe you have a use for it in your workflow - but that might also mean your workflow might not be the best.

        • lysdexic@programming.dev
          link
          fedilink
          English
          arrow-up
          0
          ·
          8 months ago

          And those who don’t immediately insult

          Pointing out someone’s claim that they don’t care about processes when it’s the critical aspect of any professional work is hardly what I’d call an insult.

          Just go ahead and say you don’t use a tool and thus you don’t feel the need to learn it. Claiming that a tool’s basic functionality is “a solution in search for a problem” is as good as announcing your obliviousness,and that you’re discussing stuff you hardly know anything about.

          • AggressivelyPassive@feddit.de
            link
            fedilink
            arrow-up
            0
            ·
            8 months ago

            So, once again we are at a point in subs like this were the question is: Oblivious autist or arrogance bordering on being an asshole?

            Pointing out someone’s claim that they don’t care about processes when it’s the critical aspect of any professional work is hardly what I’d call an insult.

            See, you’re not claiming that processes are important, you’re claiming that your process is important and your interpretation of Git is the only one allowed, and that everyone who disagress with your opinion is an idiot.

            That is factually wrong, extremely close-minded, unproductive, and really really arrogant