« ^ »

magitでgit commitを行う関数を調べる

所要時間: 約 1分
(require 'magit)

(progn 
  (magit-stage-1 "--all")
  (magit-commit-create '("--message" "Fix."))
  (magit-push-matching "origin"))
(defun our-git-commit-and-push-all ()
  (magit-stage-1 "--all")
  (magit-commit-create '("--message" "Fix."))
  (magit-push-matching "origin"))