My Repos
Guide for locating and working with dwmkerr's repositories.
Repository Structure
code
~/repos/ ├── github/ │ ├── dwmkerr/ # Personal repos (github.com/dwmkerr) │ │ ├── effective-shell/ │ │ ├── hacker-laws/ │ │ ├── claude-toolkit/ │ │ └── ... │ └── mckinsey/ # McKinsey open source repos (github.com/mckinsey) │ └── ...
Finding a Repository
1. Check Local First
Always check if the repo exists locally:
bash
ls ~/repos/github/dwmkerr/<repo-name> ls ~/repos/github/mckinsey/<repo-name>
2. If Local Repo Exists
When working with an existing local repo:
- •
Record the current state before making changes:
bashcd ~/repos/github/dwmkerr/<repo> ORIGINAL_BRANCH=$(git branch --show-current) git stash --include-untracked
- •
Fetch for reference if you need other branches:
bashgit fetch origin git checkout origin/main # or any branch for reference
- •
Always return to original state when done:
bashgit checkout "$ORIGINAL_BRANCH" git stash pop
3. If Repo Not Found Locally
Check if it exists on GitHub:
bash
gh repo view dwmkerr/<repo-name> --json name,url
If it exists remotely, clone it:
bash
git clone https://github.com/dwmkerr/<repo-name> ~/repos/github/dwmkerr/<repo-name>
For McKinsey repos:
bash
gh repo view mckinsey/<repo-name> --json name,url git clone https://github.com/mckinsey/<repo-name> ~/repos/github/mckinsey/<repo-name>
GitHub Details
- •Personal GitHub username:
dwmkerr - •Personal repos path:
~/repos/github/dwmkerr/ - •McKinsey repos path:
~/repos/github/mckinsey/
Common Repos
Some frequently accessed repositories:
- •
effective-shell- Book and website for shell/terminal skills - •
hacker-laws- Laws, theories, and patterns for developers - •
claude-toolkit- Claude Code plugins and skills - •
dotfiles- Personal configuration files
Example Usage
User: "Check my repo effective-shell for the chapter on pipes"
- •Check local:
ls ~/repos/github/dwmkerr/effective-shell - •If exists, work directly in the repo
- •Search for content:
grep -r "pipes" ~/repos/github/dwmkerr/effective-shell/
User: "What branches are in my repo X?"
- •Locate repo locally or clone
- •
cd ~/repos/github/dwmkerr/X && git branch -a