Git automatic fetch periodically/on branch checkout -
i automated method fetch our remote origin server. perhaps every time switch branches git automatically fetch on branches origin before switch... way when move local "fix branch" master tell me master behind origin master.
is possible? more detailed reason requirement below if need know why want this.
thanks guys!
i work in team of developers. when add change our origin/master branch upload change our ftp server (we have not yet setup git on our server)
if create "fix branch" , make changes file... want these files live , master. if merge changes in local file local master without fetch cause problems. if forget bring in changes our origin prior upload file may uploading file missing revisions origin. (naughty know)
also aware of updates in master possible can incorporate them "fix branch"
git doesn't have built-in scheduling features. you'll have use whatever operating system provides: cron or windows task scheduler or write batch file sleep, fetch, sleep, fetch, or whatever.
Comments
Post a Comment