I've been using Tortoise Git and today took to learning GITbash commands to help perform a task of comparing changed files that are not part of the master branch.
Using
$cp -pv -parents $(git diff MyBranch..Master --name-only) C:/Temp
This saves the file locally to my machine, these are files that have changed and is the file from master (same results if i reverse the branches), not sure how i get the files from the commited local branch.
I want to then save down the file locally from Mybranch with the purpose of having both sets of files so I can use windows software to compare file differences.
I can show a single file via
$git show master:MFile > C:/Temp
If i pass in the diff command it can only view one file which i assume is a limit of the show command.
Using Git commands can i get the files that have changed in the local branch and have been commited and the same files from master, i.e. have 2 copies of each file, the master copy and the file from local branch that's been commited but not merged to master, thanks.