2
wojtek322
13d

I've now been using git for nearly 10 years but I've barely needed to use anything else than the basic git commands. Is there any benefit in getting better at the lesser known git commands?

Comments
  • 3
  • 2
    My team doesn't understand the basics of using `--fetch all` and `--rebase`. (Which is really what you want to do, not pull/merge).

    Learning `--force-with-lease` is import from rebasing on branches shared by multiple developers.

    I recently started using submodules. I'm not a big fan but they're useful in limited amounts.

    Git worktree is ... eh .. could have been implemented a lot better.

    I wish there was a way to share a workspace as it's being worked on without committing it, so you can move it across machines.

    I've been meaning to try out Fossil.

    Do you use `git stash` and `git stash -u`?

    If you don't know any of that, you probably wasted a lot of time at various points or got stuck in rebase hell when you didn't need to be. It's worth learning more than the bare minimum.
  • 3
    upsetting your co workers by changing the git in ways they can't comprehend I guess
  • 3
    Some of the advanced stuff is really useful if you're a genius who never makes mistakes.
  • 2
    I would say it would help with little edge cases where some of those might prove useful (git -blame and git -log perhaps, insofar they are not considered basic).
  • 1
    I just always pull a lot so I have small rebases when working together. I also only use the basic git commands for years. Git is magic, once was it your nightmare getting regularely fucked up and then you have no idea anymore how to fuck it up :P But i do rebase on command line as well. No biggie.
  • 0
    I just always pull a lot so I have small rebases when working together. I also only use the basic git commands for years. Git is magic, once was it your nightmare getting regularely fucked up and then you have no idea anymore how to fuck it up :P But i do rebase on command line as well. No biggie.
  • 0
    I just always pull a lot so I have small rebases when working together. I also only use the basic git commands for years. Git is magic, once was it your nightmare getting regularely fucked up and then you have no idea anymore how to fuck it up :P But i do rebase on command line as well. No biggie.
  • 0
    I just always pull a lot so I have small rebases when working together. I also only use the basic git commands for years. Git is magic, once was it your nightmare getting regularely fucked up and then you have no idea anymore how to fuck it up :P But i do rebase on command line as well. No biggie.
  • 0
    I just always pull a lot so I have small rebases when working together. I also only use the basic git commands for years. Git is magic, once was it your nightmare getting regularely fucked up and then you have no idea anymore how to fuck it up :P But i do rebase on command line as well. No biggie.
  • 0
    I just always pull a lot so I have small rebases when working together. I also only use the basic git commands for years. Git is magic, once was it your nightmare getting regularely fucked up and then you have no idea anymore how to fuck it up :P But i do rebase on command line as well. No biggie.
  • 1
    It's enough until someone fucks smth up and you have to unfuck the repo. But we have ai now to hint us those fancy commands.. Idk, I'm not yet willing to invest extra time until I have to
Add Comment