SyntaxFix
Write A Post
Hire A Developer
Questions
You can stash and stash pop the file:
stash
stash pop
git checkout branch1 git checkout branch2 file.py git stash git checkout branch1 git stash pop