Email or username:

Password:

Forgot your password?
Top-level
Rylie ✨💖 Pavlik

@b0rk oh this is great!

Some of the confusion I think comes from git adding less confusing subcommands but not removing the old ones. So like, "git switch" can switch which branch you're on, a simpler checkout, but checkout still exists. I am guessing "git restore" is similar, because that didn't exist in the past I think, and the things you mention for it, I have done painfully with "git reset".

So now there is two ways to do things, an easier one, and one more people know...

1 comment
Rylie ✨💖 Pavlik

@b0rk I manage to remember the order of commits vs files because sometimes you have to put the files after -- to indicate you're done with options and things that aren't files, so I tend to always include -- when doing branch and file stuff to help me remember the files must always go at the end. (I feel like I've used other commands that did this thing with -- as well.)

Go Up