I'm trying to find a way to copy a specific file from one branch to another branch.
E.g. User 1 has been working in the Feature1 branch for some time. Now user2, working in the Feature2 branch, needs a file that exists in the Feature1 branch. Is there a "smooth" way of accomplishing this?
One "dirty" way of doing it would be to copy the file on the local machine (from working directory when the Feature1 branch is checked out) and paste it into the working directory for the Feature2 branch.
User 2 can checkout feature1 and copy the file somewhere - anywhere - it can even just be to a different name in the same working directory (where it will become an untracked file). Then checkout feature2, copy the file back to its proper place and name, and do "git add".
Supported Platforms macOS Sourcetree has a lot to offer and, like many developer tools, finding and using it all can be a challenge, especially for a new user. Everyone might not love ...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
We're bringing product updates and pro tips on teamwork to ten cities around the world.Save your spot