News for hackers. Stuff that matters.
Re:Can we communally deprecate git checkout? by imoreno on Thursday January 09, 2025 @06:02PM (#42650739)
Do people really type these out, instead of just making a bash alias?
Re:Can we communally deprecate git checkout? by dwaltrip on Thursday January 09, 2025 @06:35PM (#42650958)
I would wager that 90% of people using git don’t have bash aliases.
Re:Can we communally deprecate git checkout? by g-b-r on Friday January 10, 2025 @09:37AM (#42655900)
I would wager that above 90% (of those using command-line git) do, after at most a few weeks of heavy git usage

It takes no time to add some, and it's not necessary to put them online and synchronize them; it would be a no-brainer for me to add some manually, if I had to work on a new machine for more than a few minutes (and couldn't access my usual ones from it)

Re:Can we communally deprecate git checkout? by remram on Thursday January 09, 2025 @08:35PM (#42651621)
I was always using 'co' for checkout. Made the change to switch ('git s') and revert ('git r') and it has been pretty seemless. I do wish 'git reset' defaulted to --keep.
Re:Can we communally deprecate git checkout? by camtarn on Thursday January 09, 2025 @09:22PM (#42651858)
Used to have bash aliases, but nowadays I work on so many different machine, without my dotfiles present, that aliases seem kinda pointless. I'm a fast typist.
Re:Can we communally deprecate git checkout? by moregrist on Friday January 10, 2025 @06:53AM (#42654870)
Aliases have always been a double-edged sword.

They're shorter and let you be more efficient at common tasks.

They also tend to be personal and hard to share. Which can make it harder to explain what you’re doing to a coworker for pairing/debugging/training purposes. And you have to remember both the aliases and the underlying commands/options, at least enough to remember when you don’t want to use the alias.

I don’t find that I use git subcommands with a frequency that makes me want to alias them. It’s likely that different workflows lead to different optimizations.