I have a repo for my dotfiles and update it here and there on various computers. Sometimes I forget to
git pull before editting and
git push. This creates conflicts or trigger
git merge, or I just forget that I wrote a new feature somewhere else already. So, how do I do the following:
- check every
nminutes for remote repo changes and give a message to the current frame so I can pull the changes before doing something else.
- When opening (
find-file) on the repo, do the same check changes and notification.
(expansion for other use cases) if I am not working on the repo, but I still want to get notitfy about changes on a list of repos something like this:
((repo1 "git@host:/path/to/repo1") (repo2 "[email protected]:user/repo2"))
if there are changes on
repo1then I will get a notification saying
"There are changes on repo1. Check it out!"