(require 'magit)
(setq magit-completing-read-function 'ivy-completing-read)
-(setq magit-display-file-buffer-function #'pop-to-buffer)
-(setcdr magit-file-mode-map nil)
-(global-magit-file-mode)
(setq git-commit-finish-query-functions
(delete #'git-commit-check-style-conventions git-commit-finish-query-functions))