git: intent-to-add breaks autostash

· Thiago Perrotta · Aug. 19, 2026, 12:08 a.m.
Summary
This blog post discusses a specific issue with Git's autostash feature when dealing with files added using `git add -N`. It presents a problem encountered during a `git pull` where the autostash fails because it cannot merge due to local untracked changes. The author shares their troubleshooting steps, which involve using `git reset` to clear the intent-to-add entries. This post is beneficial for developers facing similar issues with Git commands.
AUTHOR