Skip to content

atstp/mine

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

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_ files
  • mine restore - restore the last snapshot
  • mine clean - remove all _mine_ files from your repo
  • mine purge - purge all mine files from the current project and backups
  • mine touch - an alternative to touch fileName_mine_
  • mine list - list the files under mine's aegis
  • mine 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 :octocat:. If you've got an idea to make it more natural or intuitive, let me know with an issue or a pull request. Enjoy!

About

a bash file for a more flexible git workflow πŸ”§

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages