this post was submitted on 12 Feb 2024
75 points (97.5% liked)

Programming

17433 readers
116 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities [email protected]



founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 38 points 9 months ago (4 children)
[–] [email protected] 21 points 9 months ago (1 children)

nonsense - never just delete the project and start fresh. You spend 20min trying to diagnose the problem by searching for the error messages and looking at the manual, then 1h-2h trying different solutions that only make the problem worse up to the point you actually think you lost your changes, then you realize your changes were stashed all along, then you apply them and notice you still have the same original problem. You try a few more commands that get you to a detached head. Then you try to solve a detached head, realizing after 30 min it's an impossible task, and only then you delete everything and start fresh.

[–] [email protected] 9 points 9 months ago

I see you have been spying on me for some time.

[–] [email protected] 11 points 9 months ago (1 children)
[–] [email protected] 5 points 9 months ago (1 children)

Git pull

Git push

Git stash

The only 3 I know.

[–] [email protected] 6 points 9 months ago* (last edited 9 months ago)

that and git log + git status to "debug git"

anything else is a magic spell you copy from stack overflow

[–] [email protected] 3 points 9 months ago (1 children)
[–] u_tamtam 3 points 9 months ago

I'm with you. Hg-git still is to this day the best git UI I know...

[–] [email protected] 2 points 9 months ago