RSSAmplifier

chromic · Feb 13, 2026

git pull --autostash

0
Sign in to vote or save

This site does not allow itself to be embedded. You can still read it on the original site — the toolbar below keeps your place in the directory.

Today I learned about the --autostash switch for git-pull: Automatically create a temporary stash entry before the operation begins, record it in the ref MERGE_AUTOSTASH and apply it after the operation ends. This means that you can run the operation on a dirty worktree. However, use with care: the final stash application after a successful merge might result in non-trivial conflicts.

Read on chromic.org

Comments

Nothing yet. Say the first thing.

    Sign in to join the conversation.