Here is how to keep Emacs healthy and happy on macOS on my machine.
Daily
- Update macOS daily to get security fixes
- Update Brew software packages
- brew update && brew upgrade
- Emacs 25.2 for example updated on the day of its release
 
- 
Snapshot Emacs’ packages cd ~/.emacs.d git add . git commit -m "Automated versioning" 
- Update Emacs packages
- Steps
- list-packages
- U
- x
- package-autoremove
 
- If you are worried about breaking your packages then initialize a Git repo in your elpaor even your entire.emacs.ddirectory before the update and restore the last version
 
- Steps
- Update Org-Mode and Magit
- Steps
- cd ~/src/org-mode/ && git ls-remote && make update
- cd ~/src/magit/ && git ls-remote && git pull && make clean && make
 
- Why
- Get best new features immediately
- If you don’t like the update then undo the pull: git reset HEAD@{1}
 
 
- Steps
Addendum:
Only clean the working copy if Git can reach remote repo!
