Answers for "git add file from another branch"

0

git add file from another branch

git checkout <branch1>
git checkout <branch2> -- <file_name>
# where <branch1> is the one you want to add the file to 
# and <branch-2> is the one where the file is located
Posted by: Guest on April-02-2022

Code answers related to "git add file from another branch"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language