HG(FORGET)

πŸ’– hg forget β€” HG(FORGET) πŸ’–

okay bestie, welcome to the hg forget manual page, the one and only, she's giving quiet luxury πŸŽ€


✨ NAME ✨

hg forget β€” forget the specified files on the next commit πŸ’…


🌸 SYNOPSIS 🌸

hg forget [OPTION]... FILE...

πŸ¦‹ DESCRIPTION πŸ¦‹

So here's the vibe: you mark the files you name so they will no longer be tracked after the next commit. That's it. That's the whole personality. ✨

Lowkey important thing though β€” this only removes files from the current branch, NOT from the entire project history. And it does not delete them from the working directory. Your files are still there, chilling. They're just not on the guest list anymore. πŸ’€

If you do want the file gone from the working directory too, that's a different girl β€” see hg remove.

And if you forget-forget too hard and need to undo a forget before the next commit? See hg add. She'll take you back. 🫢

🌈 Examples 🌈

  • forget newly-added binary files:
hg forget "set:added() and binary()"
  • forget files that would be excluded by .hgignore:
hg forget "set:hgignore()"
Returns 0 on success. slay. πŸ‘‘

πŸ‘‘ OPTIONS πŸ‘‘

  • -i, --interactive β€” use interactive mode (she asks, you answer, it's a whole conversation πŸ’¬)
  • -I, --include <PATTERN[+]> β€” include names matching the given patterns
  • -X, --exclude <PATTERN[+]> β€” exclude names matching the given patterns
  • -n, --dry-run β€” do not perform actions, just print output (a little peek, no commitment πŸ™ˆ)
[+] marked option can be specified multiple times ✨

and that's the whole page, bestie β€” no cap, every single flag accounted for πŸ§šπŸ’œ

cute sign-off time: this was the HG(FORGET) page, and honestly the footer is just HG(FORGET) again with no source, version or date stamp in sight, so like… that's the tea πŸ“. mwah, go forth and forget responsibly πŸ’–