4 ms·
Other day I started using a remote machine and after some months a git command behaved unexpectedly. I checked git version and it was a very old one. I realized
by neves 4y ago
Other day I started using a remote machine and after some months a git command behaved unexpectedly. I checked git version and it was a very old one. I realized that I'm not using any new feature of git.
What am I missing? Which somewhat newer Git feature or configuration are you using that is useful?
- yamtaddle 4y agoOnly thing I know of that's fairly recent that I use is sparse-checkout: https://www.git-scm.com/docs/git-sparse-checkout https://www.git-scm.com/docs/git-sparse-checkout It's another feature that's mainly useful for large repos. Everything else I use was there a decade or more ago, I think.
- BlackLotus89 4y agossh key signing and probably some commands like switch...
- smegsicle 4y agoswitch and restore, though still both marked experimental, are often cleaner interfaces to common tasks otherwise buried in branch, checkout, and reset
- Myrmornis 4y agodiff.colorMoved can be quite useful (not sure when it was added) https://git-scm.com/docs/git-diff#Documentation/git-diff.txt---color-movedltmodegt https://git-scm.com/docs/git-diff#Documentation/git-diff.txt...
- psd1 4y ago3-way conflict visualisation is excellent. It allows you the original parent as well as the current and incoming. Saves so much faff figuring out how to resolve a conflict. https://medium.com/@karol.rossa/git-3-way-merge-addc2728c300 https://medium.com/@karol.rossa/git-3-way-merge-addc2728c300
- onedognight 4y agogit range-diff is great for seeing what changed after a rebase. It shows you which commits were added, removed, reordered, and changed (with a diff of course) all with color.