Closed excalibur1234 closed 7 years ago
is there a way to only execute "git fetch" every 5 minutes?
or is there a faster way than "git fetch" to find out, whether your local repository is behind the online repository?
is there a way to run "git fetch" only once when a git directory is entered (i.e. the right hand git prompt gets shown for the first time)?
I don't think it is a good idea to run any online commands without user interaction. It can be added if it is commented out by default.
added "git fetch". this command makes the prompt noticeably slower (in git directories only), but without it the number of commits your local repository is behind the online repository does NOT get displayed, which leads to rebases and possibly merge conflicts.
this has just happened to me.