b0rk,
@b0rk@jvns.ca avatar

every piece of jargon in git

(what did I miss?)

scott, (edited )
@scott@kangaroopunch.com avatar

@b0rk are "lfs", "annex", and friends in scope of this project? Just defining them, not how to use them.

b0rk,
@b0rk@jvns.ca avatar

@scott might mention them briefly thanks!

be4zley,

@b0rk bisect?

be4zley, (edited )

@b0rk reflog ? hooks ?..... Ah, you have hook

njr,
@njr@zirk.us avatar

@b0rk hooks

malba,

@b0rk I got a little confused by the output of git diff - what did it mean by diff --git? Is there a real --git option for the git CLI? And what was the a/path/to/file b/path/to/file stuff about? I figured it out pretty quickly, but still.

b0rk,
@b0rk@jvns.ca avatar

@malba wow I never noticed "diff --git" before, do you know what it's supposed to mean?

malba,

@b0rk I don't think it actually means anything? Just that it's a diff from git. diff doesn't have a --git command-line option.

b0rk,
@b0rk@jvns.ca avatar

@malba yeah that's how it seems to me too, it's a weird choice for how to display it!

BarbarossaTM,
@BarbarossaTM@noc.social avatar

@b0rk This is cool!

I'd add whatchanged and shortlog in the history section. I'm using the first if I want to see what files have been touched and the second when I'm interested in the distribution of contributions across committers 🤓

benjohn,
@benjohn@todon.nl avatar

@b0rk Maybe --onto

benjohn,
@benjohn@todon.nl avatar

@b0rk I could not find clone?

benjohn,
@benjohn@todon.nl avatar

@b0rk I use @{u} shorthand for "upstream of where we are now", @{-1} short for previous branch (also sometimes -), and @{-2}, quite a lot.

kirill,

@b0rk Also: graph?

kirill,

@b0rk Parent? Multiple parents?

schwa,
@schwa@mastodon.social avatar

deleted_by_author

  • Loading...
  • wreimers,
    @wreimers@mastodon.social avatar

    @schwa @b0rk Is that the “psycho” sound??

    scared janet leigh GIF

    Twirrim,
    @Twirrim@mastodon.social avatar

    @b0rk git gc

    Not that I use it often, occasionally useful

    bady,
    @bady@mastodon.sdf.org avatar

    @b0rk Bare repo?

    Even the term repo is confusing as I mentioned here: https://mastodon.sdf.org/@bady/111335976794654583

    Bare repo is even more confusing since it implies that non-bare repos include something more which are part of the repo!

    ftregan,
    @ftregan@mastodon.tetaneutral.net avatar

    @b0rk bisect and rerere ^^

    ianchanning,

    @b0rk "hunk", but I guess it's more diff thing https://stackoverflow.com/a/37620752/327074

    drommsen,
    jeroenheijmans,

    @b0rk Hmm, the categorization is a bit confusing to me. Both the grouping, as well as some terms (e.g. ".git/config" is a thing or a file, but less so a term from git jargon).

    But in general some jargon I'm missing but hear often when talking about git:

    • gitk
    • github, gitlab, bitbucket, etc.
    • flow
    • ssh
    • sign (and gpg, pgp)
    • svn, hg, tfsvc
    • archive
    • clean
    • mv

    And some (to me) important flags:

    • --force-with-lease (when pushing)
    • --list --show-origin (for git config)
    • --amend
    ilikepi,

    @b0rk Maybe for the config section:

    .gitignore
    .mailmap

    pontus_k,

    @b0rk I didn't see rev-list and rev-parse. Not too familiar with them, but they are part of a couple of commands that I use in some automation scripts. current_branch=$(git rev-parse --abbrev-ref HEAD), and commits_ahead=$(git rev-list --left-right --count main...origin/main | perl -lae 'print $F[0]')

    quixoticgeek,
    @quixoticgeek@v.st avatar

    @b0rk mirror tripped me up the other day...

    stephanwehner,

    @b0rk Nice! Merge and commit have entries merge and commit, but branches doesn't have branch.

    miah,
    @miah@hachyderm.io avatar

    @b0rk you have squash but I didn't see fixup (in reference to rebase).

    alanevans,
    @alanevans@androiddev.social avatar

    @b0rk oh "porcelain", useful for programmatic consumption of command results

    gerotakke,
    @gerotakke@social.bitwig.community avatar

    @b0rk Nice! I think I would add “rerere” under merging just because the name is so silly that everyone will want to figure out what it is once they hear it 😄
    Also maybe “switch” for branches and move “restore” to staging area?

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