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
Or just use a patch file to patch from your otherbranch to your master
git diff otherbranch master > ~/tmp/otherbranch.diff git checkout master git apply ~/tmp/otherbranch.diff