Getting a file from a branch into GIT
So I updated all of my repositories from origin with git fetch, and this downloaded several files from my non-master branch (let's call it "test", for argument). However it did not update a particular file that I wanted to update to that branch - let's call it "file.name".
File.name already existed locally, but I want to overwrite it with this branch - how would I go about doing that? I have changes that I want to checkout and see if they work.
git cat-file is one way to do it:
git cat-file -p master:dir/dir/dir/file.txt > file.txt