Scratchpads
These commands let you use Git-Tool to manage a space for messing around and trying things out.
Scratchpads are Git-Tools version of dumping all of your "unsorted" work onto your desktop because you can't be bothered to figure out a better place to put them. Well, almost the same, except that it keeps the chaos neatly organized by week so you can impress co-workers with your mad organization skills. Don't worry, we won't tell them if you don't.

Directory Structure

The naming scheme used to generate scratchpads is YEAR-WEEK, so you'll end up with directories like 2021w10 for the 10th week of 2021. This works well when it comes to maintaining context for your current week, with the idea that you probably don't care too much about things left in your scratchpads from 6 months ago. Of course, if you decide you want to promote something to a proper project, you can always use gt new to give it its own repository.
1
.
2
└── scratch/
3
├── 2020w48/
4
├── 2021w10/
5
└── 2021w11/
Copied!

scratch

The gt scratch command opens a weekly scratchpad for you to work in. It's a great place for you to toss things you're hacking on, notes you're taking or just to have somewhere relatively organized to play around with a new toy.
It works very similarly to the gt open command, it just doesn't use git. That means you can still launch any of your configured applications just as you would if you were dealing with a repository. Have fun :smile:.

Aliases

    gt scratch
    gt s

Example

1
# Open the current week's scratchpad in your default app
2
gt s
3
4
# Open a specific week's scratchpad in your default app
5
gt s 2021w10
6
7
# Open the current week's scratchpad in VS Code
8
gt s code
9
10
# Open a specially named scratchpad folder
11
gt s 2021w10-super-important
Copied!
You don't need to use our naming scheme if you don't want to, just run gt s something and we'll create a something folder for you with no complaints. This can be useful if you have an important project which you don't want to lose track of.
Last modified 20d ago