I'm a very limited git user and most of the time, I just want to stage commit and push my code without too much ceremony.
What's the git add -A
equivalent for magit? (I want to do it programmatically)
Emacs Stack Exchange is a question and answer site for those using, extending or developing Emacs. It only takes a minute to sign up.
Sign up to join this communityJust press S to stage all unstaged changes.
To also include all untracked files (other than .gitignored files), use a prefix argument: C-uS
You can alternatively type s on the relevant section headings: "Unstaged changes" and "Untracked files", which you can jump to with ju and jn respectively.
git commit --all
, you can add"--all"
tomagit-commit-arguments
so that it's enabled by default.