Makzan / I share what I learned

TIL: git checkout is now two commands: git switch and git restore

https://stackoverflow.com/a/57266005/1382695

Today I learned:

I had been using git checkout for both switching branch, creating branch, restoring files since 2009. I often thought that should be two commands for two purposes. So here they are: switch and restore.


Published on 2020-04-27. More articles like this:
- Git
- Today I Learned

Previous <- On using mouse or trackpad in iPadOS 13.4
Next -> How I minimize phone distraction: grayscale display

📬 Subscribe to Makzan’s Weekly Dispatch

Want productive tips and web technologies links like this in your inbox each week? Sign up for weekly dispatch each week. No spam ever. Just useful content:

What to expect: If you wish to withdraw your consent and stop hearing from us, simply click the unsubscribe link at the bottom of every email we send or contact us at mak@makzan.net. We value and respect your personal data and privacy. To view our privacy policy, please visit our website. By submitting this form, you agree that we may process your information in accordance with these terms.