git-annex-watch(1)

πŸ“¦
version 10.20261026 Β· 3 versions
, in alpine 3.24, arch rolling, debian trixie, epel 10, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– git-annex-watch(1) πŸ’–

okay bestie, this is a page from the General Commands Manual β€” it's the git-annex-watch one, and it's about to become your new fave little background gremlin πŸ¦‹


✨ NAME ✨

git-annex-watch β€” daemon to watch for changes πŸ‘€


🌸 SYNOPSIS 🌸

git annex watch

πŸŽ€ DESCRIPTION πŸŽ€

So basically: this thing watches for changes to the files in the current directory and all its subdirectories, and it takes care of automatically adding new files for you β€” plus it deals with deleted, copied, and moved files. the way that it just… handles it?? 😭

once you've got this running as a daemon in the background, you literally no longer need to manually run git commands when you're manipulating your files. it's giving personal assistant. it's giving main character energy for your repo πŸ’…

by default, all new files in the directory get added to the repository. (yes, including dotfiles, don't @ me πŸ™ˆ) if you want to block some files from being added, use .gitignore files. simple as that.

also by default, every file that gets added is added to the annex β€” same as when you run git annex add. but!! if you configure annex.largefiles, then any files that it does not match will instead be added with git add. so you get to be picky about which ones go where ✨


πŸ’… OPTIONS πŸ’…

  • --foreground β€” avoid forking to the background. like, stay right here with me bestie 🫢
  • --stop β€” stop a running daemon in the current repository. bye bye daemon, you served πŸ’€

also, the git-annex-common-options(1) can be used too, so go peek at those if you need more knobs to turn πŸ‘‘


🌈 SEE ALSO 🌈


πŸ‘‘ AUTHOR πŸ‘‘

Joey Hess <id@joeyh.name>


fr fr, that's the whole page β€” no cap, every single flag and file path stayed exactly where it was πŸ’–

and that's a wrap on git-annex-watch(1), straight out of the git-annex manual β€” go forth and let the daemon do the boring stuff for you, bestie πŸŽ€βœ¨πŸŒΈπŸ’œ