Skip to main content

A simple tool to hide files in a git repository without adding them to .gitignore.

Project description

githide

git hide is a simple tool to hide files in a git repository when the idea of adding them to a public .gitignore is unsavory.

other resons it might be useful

  • perhaps you want to leave a note to future you, only for your eyes.
  • perhaps you are taking notes in the same directory as your code and you don't want to commit them.
  • i suppose you could hide entire files worth of sensitive information? like passwords, secrets, API keys, etc. this is especially relevant if you are too cool for a proper secrets management tool.
  • perhaps you are working on a project with a team and you want to hide files from your team. you get the idea.

under the hood

githide uses .git/info/exclude to hide files. This is a git feature that allows you to ignore files without adding them to .gitignore. This is a simple way to hide files from the git history.

features

  • hide files from the git history using a simple command
  • create a secondary --local gitignore file: .gitignore.local
  • unhide files
  • list hidden files

installation

pip install githide

usage

initialize githide. This command will create a secondary gitignore file: .gitignore.local at the root of the git repository. It will also execute git config core.excludesfile .gitignore.local and add .gitignore.local to the .git/info/exclude file. This will ensure that the .gitignore.local file, and each file added to it, is not tracked by git.

githide init

hide a file or directory

githide add <file>

unhide/remove a file or directory from the hidden list

githide remove <file>

list hidden files

githide list

undo the last hidden file

githide undo

or

githide pop

note

  • githide does not encrypt files. It simply hides them from the git history.
  • githide is a simple tool and does not provide any security. It is a convenience tool to hide files from the git history.
  • the hidden files are stored in a secondary gitignore file: .gitignore.local
  • the hidden files are not tracked by git. They are ignored by git.
  • githide is not a replacement for a proper secrets management tool. It is a simple tool for hiding files.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

githide-0.1.0.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

githide-0.1.0-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file githide-0.1.0.tar.gz.

File metadata

  • Download URL: githide-0.1.0.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.2

File hashes

Hashes for githide-0.1.0.tar.gz
Algorithm Hash digest
SHA256 a4355a3a34a2cf09638cfc556c48e3db3117a18487b14bd8dca382217e7f00c1
MD5 c09582bbe11bda982baea319924c0118
BLAKE2b-256 eac84e1a40961651852f0512d94aea82fe3120f1f369e7520c37cfe77ecdc665

See more details on using hashes here.

File details

Details for the file githide-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: githide-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.2

File hashes

Hashes for githide-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 422769be0b1672dd0d227a6d26abd80efd780c80a4ebfeea6f9e9da2e0137fae
MD5 f63854c0edfe2273b1128c8e631707d8
BLAKE2b-256 8b4f00af86374c2622245ce55112787ace46f5ec7e49d81b3d1632cad14759c8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page