If you want to save encrypted token to ~/.gitconfig , install elisp from following url. Or Melpa. https://github.com/mhayashi1120/Emacs-kaesar/raw/master/kaesar.el (setq yagist-encrypt-risky-config t)