Xavier Olive research teaching python blog til cli

Import/restore files from other branches with git

14 April 2022

From a branch, pick a file as it is written in another branch:

git restore -s master -SW -- path/to/file.py