I have a git repo to store my "dot files" and I have a branch that I use in company's computer and another one that I use in my personal one.
Often I create useful functions and aliases at work that I would like to use on my personal computer. However, I would like to only copy these functions while avoiding having copy certain environment variable. Or sometimes I may just need to tweak the function because I use different folder structures at work and at home.
To give an idea of what I want, if I was using SVN (and assuming I had a folder per branch) I would just compare my two branch folders (with meld, for instance) and I would just manually copy things between the two versions of the file (one for each branch).
My question is: would I be able to do this with git? Neither merge
nor cherry-pick
seem to be fit for purpose for what I want.
Thanks.