I’m a single developer using git to document my project changes and versions.
I’m pretty new to git and I still have problems understanding some of the concepts behind it.
In the past decades I used to just make dater, commented backups of my projects as a “repository”.
I have some projects in a git repository with several commits and three branches.
Now I want to merge some files of my current project with the ones in a different branch of the repository. I just can’t find a way to save a copy of the other revision to a different directory.
My Project has the branches “D7” and “D10”. It contains a Directory “Customers”.
My active project directory is in sync with the branch “D7”.
Now I want to merge some content from files in directory “Customers” of branch “D10” to my working directory.
To do that I want to extract the complete directory “Customers” to a temporary folder so I can compare the two folders and merge file contents with Beyond Compare.
How can I copy files from a certain revision of the repository to some local directory without destroying the contents of my working directory?