Sign up for the KDAB Newsletter
Stay on top of the latest news, publications, events and more.
Go to Sign-up
Find what you need - explore our website and developer resources
1 June 2022
I seem to be on a quest to nuke my work unintentionally. Some time ago, I did it by running "git checkout" when I intended to run "git checkout -".
In this episode, I'll introduce you to "git switch" and "git restore" -- two commands, which means that, in most cases, you do not need "git checkout" anymore.
Links:
* alias to hide git checkout: https://stackoverflow.com/questions/57700953/how-can-i-disable-git-checkout-in-git-2-23
* Episode on backing up your files every 5 minutes: https://www.youtube.com/watch?v=1yITO6dTqsU&list=PL6CJYn40gN6gf-G-o6syFwGrtq3kItEqI&index=51
0:00 Introduction
0:47 The problem shown in the shell
4:02 git switch
4:59 git restore
5:25 Removing git checkout
6:09 Still need checkout for git bisect
All QML tips and tricks videos : https://www.youtube.com/playlist?list=PL6CJYn40gN6jWHP5krsQrVGyYtKh3A3be
All Qt Widgets and more videos:
https://www.youtube.com/playlist?list=PL6CJYn40gN6gf-G-o6syFwGrtq3kItEqI