mine
If you're a fan of sticky notes, this could be for you.
mine
uses a global ignore π along with a handful of bash
functions to let you keep personal, backup-able notes π and repo-related
records with your repo and insulated from its history.
about
an example:
yours?
hypothetical_repo/
readme.md
_mine_AWSloginInfo β
usabilityIdeas_mine_ β
bin/
build
generate
fixEveryonesWhitespace_mine_ β
src/
main.file
...
_mine_/ β
notes β
todays-todo β
...
the mine
command along with the _mine_
files leave you free to
π keep login info for a related service with your repo β π leave notes for yourself about where you left off and what to do later β π work with a slapdash script until you get a real one together β β maintain a personal todo list β π¨ remove all your personal files in an instant (perhaps before you ftp or rsync) β π store curled or pasted code for personal reference β π store a collection of useful links that would otherwise clutter the history.
commands
mine snap
- take a snapshot of your current_mine_
filesmine restore
- restore the last snapshotmine clean
- remove all_mine_
files from your repomine purge
- purge all mine files from the current project and backupsmine touch
- an alternative totouch fileName_mine_
mine list
- list the files under mine's aegismine help
get it
git clone https://github.com/atstp/mine.git ~/.mine
cd ~/.mine
bash ./configure
# exit and reopen your terminal
mercurial users: after running ./configure
, add a rule to globally ignore
*_mine_*
files, in the syntax: glob
section
update it
cd ~/.mine
git pull
license
MIT
colophon
The "users" will likely be myself, but it's here for anyone who finds it useful.
This thing came about naturally for me: a local ignore, then a global ignore,
followed by a few convenience commands, now it's wrapped up here .
If you've got an idea to make it more natural or intuitive, let me know with
an issue or a pull request. Enjoy!