Git – You’re Doing It Wrong

Instead ofDo this
git checkout {file}git restore {file}
git checkout {branch}git switch {branch}
git checkout -b {newbranch}git switch -c {newbranch}
git push --forcegit push --force-with-lease

Leave a Reply

Your email address will not be published. Required fields are marked *

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.