Is it possible in Git to switch to another branch without checking out all files?
After switching branch I need to delete all files, regenerate them, commit and swit
you can make use of
1. git checkout -f 2. git cherry-pick -x
previous-branch-commit-id is the commit from where you want to copy old the data.