#
# Bring a file from another branch into current branch using git.
# This will overwrite the version of the file in the current
# branch if there is one.
# git checkout <source-branch> -- <file-path>
git checkout main -- myfile.py
Analytical – Honest – Passionate
#
# Bring a file from another branch into current branch using git.
# This will overwrite the version of the file in the current
# branch if there is one.
# git checkout <source-branch> -- <file-path>
git checkout main -- myfile.py