ExLisper Site
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
cm0002@lemmy.world to Programmer Humor@programming.dev · 8 months ago

git workflow

lemmy.ml

message-square
10
link
fedilink
274

git workflow

lemmy.ml

cm0002@lemmy.world to Programmer Humor@programming.dev · 8 months ago
message-square
10
link
fedilink
alert-triangle
You must log in or # to comment.
  • Limonene@lemmy.world
    link
    fedilink
    arrow-up
    6
    ·
    8 months ago

    I like git add because then you can do git diff --staged

    • Dave@lemmy.world
      link
      fedilink
      arrow-up
      2
      ·
      8 months ago

      Yes yes, combined with git add -P makes small, meaningful commits so much easier.

      • fossphi@lemm.ee
        link
        fedilink
        English
        arrow-up
        1
        ·
        8 months ago

        Check out magit!

        • Dave@lemmy.world
          link
          fedilink
          arrow-up
          1
          ·
          8 months ago

          Alas I sold my soul to VSCode a long time ago.

          Also, ew, emacs 😝

          • fossphi@lemm.ee
            link
            fedilink
            English
            arrow-up
            2
            ·
            8 months ago

            Oh come on, try it out! I know some people who use emacs only for magit. It really is that good.

            A few of them slowly became full on emacs users…

  • callmepk@lemmy.world
    link
    fedilink
    arrow-up
    2
    ·
    8 months ago

    I specifically have a oh-shit alias for this kind of stuff lol: https://code.wedotstud.io/patrick/dotfiles/src/commit/c2f93629fe27d1747ceb22b4d6442840d109aa99/.gitconfig#L28

  • Comtief@lemm.ee
    link
    fedilink
    arrow-up
    2
    ·
    8 months ago

    i’m sure there are much better tools available, but i’m just used to git gui where rescan, commit and push all are in order.

  • zero_spelled_with_an_ecks@programming.dev
    link
    fedilink
    arrow-up
    2
    ·
    8 months ago

    … What’s git merge look like?

  • thirteene@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    8 months ago

    I set this up for seamless commits:

    function gao() {
         git add .
         git commit -a -m "$*"
         git push origin `git rev-parse --abbrev-ref HEAD`
     }
    

    Usage: gao fixing a typo

  • tatterdemalion@programming.dev
    link
    fedilink
    arrow-up
    1
    ·
    8 months ago

    Use Jujutsu jj and you won’t have this problem

Programmer Humor@programming.dev

programmer_humor@programming.dev

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !programmer_humor@programming.dev

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 1.01K users / day
  • 2.2K users / week
  • 5.31K users / month
  • 10.2K users / 6 months
  • 1 local subscriber
  • 27.9K subscribers
  • 946 Posts
  • 7.75K Comments
  • Modlog
  • mods:
  • adr1an@programming.dev
  • Feyter@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.12
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org