Whats all the squash talk? Can't you just not allow the PR until its been squashed
We mostly PR directly on to master, ideally with few commits but I just reset and then PR with just the one commit (in theory not always in practice)
― cherry blossom, Monday, 4 May 2020 21:42 (six years ago)
Yeah I commit until the cows come home into a feature branch, then squash the feature branch into dev. (I use Bitbucket to do this so there is little chance for human error.)
― DJP, Monday, 4 May 2020 23:31 (six years ago)
the trouble is the ideal number of commits to actually land for review is likely (imo) somewhere in between 1 and n
that said I don't really bother anyone I currently work with about this b/c our practices are bad and I'm still relatively new and don't want to waste my energy telling people to be better if they don't already value it
― silby, Monday, 4 May 2020 23:44 (six years ago)
this is why when you "google in the gaps" on git you get three answers with all of them telling you definitely not to do what the other two say.
is version control hard or is git terrible? ('both' is an acceptable answer.)
― a slice of greater pastry (ledge), Tuesday, 5 May 2020 08:08 (six years ago)
You get better at googling though! Or maybe more accurately you get better at breaking down the bits so you're googling for smaller steps instead of "how do I build a moon"
I feel like git is as easy or as hard as your team makes it. I only really ever run add, commit, pull, push, merge, branch, checkout, and reset
― cherry blossom, Tuesday, 5 May 2020 08:20 (six years ago)
ime it's beloved of people who like to over-complicate everything they do.
our default at work is to squash merge from feature branch into master. that way you don't get all the 'i'm trying this' or 'changed a thing' commits. before github there weren't feature branches...
― koogs, Tuesday, 5 May 2020 08:24 (six years ago)
I am lazy and just use a GUI
― like, I’m eating an elephant head (katherine), Tuesday, 5 May 2020 08:31 (six years ago)
I do my adds and commits from the button inside vscode! the others from terminal
― cherry blossom, Tuesday, 5 May 2020 09:39 (six years ago)
I think it would be cool to work at a shop where people had time to worry about things like squashing commits to make the log look nicer. Our logs look like a tire fire.
― o. nate, Tuesday, 5 May 2020 21:33 (six years ago)
to be fair the only times I use git are for projects that don't remotely care about this, or for my own personal projects
― like, I’m eating an elephant head (katherine), Tuesday, 5 May 2020 22:07 (six years ago)
git is good but has way too many options so takes forever to learn.
― My Chess Hustler (James Redd and the Blecchs), Tuesday, 5 May 2020 22:16 (six years ago)
And then there are current best practices but some people didn't upload their brains so are still stuck on outmoded best practices.
― My Chess Hustler (James Redd and the Blecchs), Tuesday, 5 May 2020 22:17 (six years ago)
goddam I really messed up this whole career thing lol
― brimstead, Tuesday, 5 May 2020 22:28 (six years ago)
crushed some SQL today lads
― silby, Tuesday, 5 May 2020 22:37 (six years ago)
xp -- this isn't career stuff, the only code I've done in the past month is a dumb reverse engineering project
― like, I’m eating an elephant head (katherine), Tuesday, 5 May 2020 23:00 (six years ago)
lol sorry that was just a general scream into the void
― brimstead, Tuesday, 5 May 2020 23:09 (six years ago)
Scream away!
I was scanning over my old posts, and I'm kind of stunned at how far I've come. Granted, that was (yikes) more than 10 years ago, but the industry's changed a load too, especially with the rise of bootcamps. I think those alone would've helped me out back then, and they're probably the best avenue for people thinking of getting into industry as a part of a career change.
― Judd Apatowsaurus (Leee), Tuesday, 5 May 2020 23:35 (six years ago)
I am proud to have leapfrogged from bash scripts into management like the ambitious careerist motherfucker that I was raised to be
― El Tomboto, Wednesday, 6 May 2020 03:23 (six years ago)
Or basically “I realized I sucked at code so I volunteered for everything else I could do until it worked”
― El Tomboto, Wednesday, 6 May 2020 03:25 (six years ago)
volunteering to do things where you've found a strength is seriously underrated and doesn't work in all organizations, but it's a good strategy
― mh, Wednesday, 6 May 2020 03:29 (six years ago)
I think git is great but to me its very much a secondary thing, I don't want to do anything more than the 8 or 9 commands I use. And if I found I was doing anything more than that I would wonder what had gone wrong that I needed those things.
Although hmmm, having said that github actions might be something worth looking into one day
― cherry blossom, Wednesday, 6 May 2020 04:04 (six years ago)
I’ve done some vile things with git
― silby, Wednesday, 6 May 2020 05:07 (six years ago)
surprisingly, vilegit.com seems unregistered
― El Tomboto, Wednesday, 6 May 2020 06:13 (six years ago)
a foul repository
― Morton Koopa Jr. Sings Elvis (Sufjan Grafton), Wednesday, 6 May 2020 17:16 (six years ago)
I am surprised vilegit.com hasn't been snapped up by VI purists
― DJP, Wednesday, 6 May 2020 17:45 (six years ago)
I am a vim purist but I stopped haranguing people about it 10 years ago
― silby, Wednesday, 6 May 2020 17:50 (six years ago)
Some helpful but less-trafficked git commands that I use:
git ls-files -m
git add -p /path/to/file
― Judd Apatowsaurus (Leee), Wednesday, 6 May 2020 18:15 (six years ago)
My most recent git discovery was -v on git commit (which I’ve now made the default behaviour). It appends the diff (along with the list of staged and unstaged files) in your editor when you edit the commit message. It’s in the commented bit so it doesn’t go in the commit message but it’s useful to refer to, and most useful for catching stuff you shouldn’t be committing.
― 𝔠𝔞𝔢𝔨 (caek), Wednesday, 6 May 2020 18:48 (six years ago)
Oh, nice!
― My Chess Hustler (James Redd and the Blecchs), Wednesday, 6 May 2020 18:53 (six years ago)
git add --patch whatever.js
is essential for a hygienic commit log
― diamonddave85 (diamonddave85), Friday, 8 May 2020 03:31 (six years ago)
Thanks for the reminder! Any pro tips for using stash?
― My Chess Hustler (James Redd and the Blecchs), Friday, 8 May 2020 14:46 (six years ago)
I always forget stash options so I have to look it up every time:
https://stackoverflow.com/a/10726185https://stackoverflow.com/questions/3573623/is-it-possible-to-preview-stash-contents-in-git
― Judd Apatowsaurus (Leee), Friday, 8 May 2020 15:08 (six years ago)
And a whole bunch here!
https://www.freecodecamp.org/news/useful-tricks-you-might-not-know-about-git-stash-e8a9490f0a1a/
― Judd Apatowsaurus (Leee), Friday, 8 May 2020 15:09 (six years ago)
Thanks. Have also started using “git stash push” so that I don’t stash everything, just the files that are causing a merge conflict, say.
― My Chess Hustler (James Redd and the Blecchs), Friday, 8 May 2020 15:16 (six years ago)
Wow just found out you can stash hunks as well.
― My Chess Hustler (James Redd and the Blecchs), Friday, 8 May 2020 15:17 (six years ago)
If that's what you're into.
― Judd Apatowsaurus (Leee), Friday, 8 May 2020 16:41 (six years ago)
Lol
― My Chess Hustler (James Redd and the Blecchs), Friday, 8 May 2020 16:46 (six years ago)
And now I have an even dorkier d/n.
― git stash hunks (Leee), Friday, 8 May 2020 16:50 (six years ago)
https://i.pinimg.com/originals/7f/cd/36/7fcd3690d0e1b184c2d8d9fef6cbac98.gif
― My Chess Hustler (James Redd and the Blecchs), Friday, 8 May 2020 16:51 (six years ago)
If only!
I'm learning tmux now!
― git stash hunks (Leee), Friday, 8 May 2020 22:12 (six years ago)
[git add --patch whatever.js]is essential for a hygienic commit log
― My Chess Hustler (James Redd and the Blecchs), Monday, 11 May 2020 14:40 (six years ago)
i visit this page once or twice a month:
https://sethrobertson.github.io/GitFixUm/fixup.html
― a slice of greater pastry (ledge), Monday, 11 May 2020 14:44 (six years ago)
neat
― silby, Monday, 11 May 2020 14:45 (six years ago)
I decided at some point that I hated trying to remember command line options and started using GitExtensions as my Git IDE; I have never looked back.
― DJP, Monday, 11 May 2020 15:27 (six years ago)
Sourcetree is nice on Mac.
not found anything decent on linux yet. and the one i did like (gitg) lost a lot of the things i liked about it from one version to the next (and gets confused by binary files, like 100% cpu confused)
― koogs, Monday, 11 May 2020 15:43 (six years ago)
(svn is generally better for my use case anyway - large document, lots of tiny changes - than git anyway because it stores the diffs and not a complete copy of each like git does*. i had a git directory that was 40x the size of the original document once)
(* git will compress eventually, i'm told, and i'm sure i could force it to happen faster than it does, but svn does it by default)
― koogs, Monday, 11 May 2020 15:47 (six years ago)
We onboarded a new hire recently who came from a bootcamp, and I realized that of our entire engineering team at the local office (we have presences in multiple regions), only our VP and lead security guy and our worst (by far) developer have CS degrees. That leaves a director, a devops lead (who has an EE degree), and two senior engineers (including me).
― Gazelle Bundchen (Leee), Friday, 22 May 2020 21:50 (six years ago)
Actually the other senior eng has an interdisciplinary degree that can definitely fall under the CS heading.
― Gazelle Bundchen (Leee), Friday, 22 May 2020 21:56 (six years ago)
aren't you the one who was trained not to say 'onboarded' though
― j., Friday, 22 May 2020 22:02 (six years ago)
Me? Not that I remember!
― Gazelle Bundchen (Leee), Friday, 22 May 2020 22:36 (six years ago)