Git

Last Updated: 9/6/2023

Picking file from another branch

  • You can pick changes from a particular file from another branch and apply to master.
git switch -C feature/send-email
echo river > toc.txt
git commit -am "update toc.txt"
git switch master
git restore --source=feature/send-email --toc.txt
git add .
git commit -m "message"