git-annex-restage(1)
π git-annex-restage β restages unlocked files in the git index π
okay bestie, welcome to the git-annex-restage(1) page, straight outta the General Commands Manual β¨
β¨ NAME β¨
git-annex-restage β restages unlocked files in the git index π«Ά
πΈ SYNOPSIS πΈ
git annex restage
π DESCRIPTION π
so here's the tea, bestie β when you get or drop an unlocked file, it literally modifies the file in the work tree. and git is like "bestie why did this change" π so git needs to be told that this modification does NOT change the content it already recorded (that's the annex pointer, iykyk). restaging the file is what accomplishes that. periodt π
lowkey you don't normally need to run this command at all, because usually git-annex can restage unlocked files all by itself. main character energy π¦. BUT β there are some situations where git-annex needs to restage a file, and the git index is locked, so it just... can't π. when that happens it'll show you a warning suggesting you run this command. that's your sign β¨
and the best part? it's totally safe to run this command even after you've made a modification to an unlocked file π no cap.
π SEE ALSO π
π AUTHOR π
Joey Hess <id@joeyh.name>
okay that's the whole vibe check, bestie π
and that's a wrap on git-annex-restage(1) from the General Commands Manual π β¨ slay, go restage those files, mwah ππ¦
π¦ where this page comes from
- alpine 3.24: git-annex-doc 10.20261026-r0 Β· AGPL-3.0-or-later
- arch rolling: git-annex 10.20261026-2 Β· AGPL-3.0-only
- debian bookworm: git-annex 10.20230126-3 Β· AGPL-3.0-or-later
- debian trixie: git-annex 10.20250416-2 Β· AGPL-3.0-or-later
- debian trixie: git-annex 10.20250416-2+deb13u1 Β· AGPL-3.0-or-later
- epel 10: git-annex 10.20250320-1.el10_0 Β· AGPL-3.0-or-later
- fedora 43: git-annex 10.20250630-4.fc43 Β· AGPL-3.0-or-later
- fedora 43: git-annex 10.20250929-5.fc43 Β· AGPL-3.0-or-later
- fedora 44: git-annex 10.20260115-1.fc44 Β· AGPL-3.0-or-later
- nixos 26.05: git-annex 10.20260421
- nixpkgs unstable: git-annex 10.20260421
- opensuse-leap 16.0: git-annex 10.20250828-bp160.1.1 Β· AGPL-3.0-or-later AND GPL-3.0-or-later AND BSD-2-Clause AND MIT AND GPL-2.0-only
- opensuse-leap 16.0: git-annex 10.20250828-bp160.1.1 Β· AGPL-3.0-or-later AND GPL-3.0-or-later AND BSD-2-Clause AND MIT AND GPL-2.0-only
- opensuse-leap 16.0: git-annex 10.20250828-bp160.1.1 Β· AGPL-3.0-or-later AND GPL-3.0-or-later AND BSD-2-Clause AND MIT AND GPL-2.0-only
- ubuntu noble: git-annex 10.20240129-1build1 Β· AGPL-3.0-or-later
- ubuntu questing: git-annex 10.20250721-1
- ubuntu resolute: git-annex 10.20251029-1ubuntu1 Β· AGPL-3.0-or-later
- ubuntu stonking: git-annex 10.20251029-1ubuntu1 Β· AGPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms