I would like some automated method to do a fetch from our remote origin server. So perhaps every time I switch branches git would automatically do a fetch on all branches from origin before the switch... this way when I move from a local "fix branch" to master it would tell me that my master is behind origin master.
Is this possible? A more detailed reason for my requirement is below if you need to know why I want this.
Thanks guys!
I work in a team of developers. When I add a change to our origin/master branch I also upload that change to our FTP server (we have not yet setup git on our server)
If I create a "fix branch" and make changes to a file... Then I want to get these files live and into master. If I simply merge the changes in my local file into my local master without a fetch this could cause problems. if I forget to bring in changes from our origin prior to upload the file I may be uploading the file with missing revisions from origin. (naughty I know)
Also I would like to be aware of any updates in the master as soon as possible so that I can incorporate them into my "fix branch"