| name | devtools-git-advanced-workflows |
| description | Sub-skill of devtools: Git Advanced Workflows (+1). |
| version | 1.0.0 |
| category | development |
| type | reference |
| scripts_exempt | true |
Git Advanced Workflows (+1)
Git Advanced Workflows
git worktree add ../feature-branch feature/new-feature
git worktree add ../hotfix-branch hotfix/urgent-fix
git worktree list
git worktree remove ../feature-branch
git bisect start
git bisect bad HEAD
git bisect good v1.0.0
git bisect run ./test.sh
git bisect reset
git reflog
git checkout HEAD@{5}
git branch recovered-branch HEAD@{5}
git config rerere.enabled true
git rebase -i HEAD~5
cat > .git/hooks/pre-commit << 'EOF'
npm test || exit 1
npm run lint || exit 1
EOF
chmod +x .git/hooks/pre-commit
npx husky init
echo "npm test" > .husky/pre-commit
Raycast/Alfred Automation
PROJECT="$1"
PROJECT_DIR="$HOME/projects/$PROJECT"
if [ -d "$PROJECT_DIR" ]; then
code "$PROJECT_DIR"
echo "Opened $PROJECT"
else
echo "Project not found: $PROJECT"
fi