git-advanced-1-complete-gitconfig
Sub-skill of git-advanced: 1. Complete .gitconfig (+2).
Best use case
git-advanced-1-complete-gitconfig is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Sub-skill of git-advanced: 1. Complete .gitconfig (+2).
Teams using git-advanced-1-complete-gitconfig should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/1-complete-gitconfig/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How git-advanced-1-complete-gitconfig Compares
| Feature / Agent | git-advanced-1-complete-gitconfig | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Sub-skill of git-advanced: 1. Complete .gitconfig (+2).
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# 1. Complete .gitconfig (+2)
## 1. Complete .gitconfig
```gitconfig
# ~/.gitconfig
[user]
name = Your Name
email = your.email@example.com
[core]
editor = vim
autocrlf = input
pager = delta
[init]
defaultBranch = main
[pull]
rebase = true
[push]
autoSetupRemote = true
default = current
[fetch]
prune = true
pruneTags = true
[merge]
conflictStyle = diff3
ff = false
[rebase]
autosquash = true
autostash = true
[rerere]
enabled = true
[diff]
algorithm = histogram
colorMoved = default
[status]
showUntrackedFiles = all
[credential]
helper = cache --timeout=3600
[alias]
# Core aliases
st = status -sb
co = checkout
br = branch
ci = commit
lg = log --graph --oneline --decorate -20
# Workflow aliases
undo = reset --soft HEAD~1
wip = !git add -A && git commit -m 'WIP'
sync = !git fetch --all --prune && git pull --rebase
# Branch cleanup
cleanup = !git branch --merged main | grep -v '^[ *]*main$' | xargs git branch -d
[delta]
navigate = true
side-by-side = true
line-numbers = true
[interactive]
diffFilter = delta --color-only
```
## 2. GitHub Workflow with Hooks
```yaml
# .github/workflows/pr-check.yml
name: PR Checks
on:
pull_request:
branches: [main]
jobs:
validate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Validate commit messages
run: |
COMMITS=$(git log --format="%s" origin/main..HEAD)
PATTERN="^(feat|fix|docs|style|refactor|test|chore)(\(.+\))?: .+"
while IFS= read -r commit; do
if ! echo "$commit" | grep -qE "$PATTERN"; then
echo "Invalid commit message: $commit"
exit 1
fi
done <<< "$COMMITS"
- name: Check for merge commits
run: |
MERGE_COMMITS=$(git log --merges origin/main..HEAD --oneline)
if [ -n "$MERGE_COMMITS" ]; then
echo "Merge commits found. Please rebase instead."
echo "$MERGE_COMMITS"
exit 1
fi
- name: Run tests
run: npm test
```
## 3. Git Flow Helper Functions
```bash
# Add to ~/.bashrc
# Start feature
gf-start() {
local feature="$1"
git checkout main
git pull
git checkout -b "feature/$feature"
}
# Finish feature
gf-finish() {
local branch=$(git rev-parse --abbrev-ref HEAD)
git checkout main
git pull
git merge --no-ff "$branch"
git branch -d "$branch"
}
# Start hotfix
gh-start() {
local hotfix="$1"
git checkout main
git pull
git checkout -b "hotfix/$hotfix"
}
# Sync branch with main
gsync() {
local branch=$(git rev-parse --abbrev-ref HEAD)
git fetch origin main:main
git rebase main
}
```Related Skills
skill-creator-advanced-usage
Sub-skill of skill-creator: Advanced Usage.
git-advanced-9-monorepo-patterns
Sub-skill of git-advanced: 9. Monorepo Patterns.
git-advanced-7-git-aliases
Sub-skill of git-advanced: 7. Git Aliases (+1).
git-advanced-6-git-hooks
Sub-skill of git-advanced: 6. Git Hooks.
git-advanced-3-git-bisect
Sub-skill of git-advanced: 3. Git Bisect (+2).
git-advanced-1-interactive-rebase
Sub-skill of git-advanced: 1. Interactive Rebase (+1).
git-advanced-1-commit-history
Sub-skill of git-advanced: 1. Commit History (+2).
cli-productivity-1-complete-shell-configuration
Sub-skill of cli-productivity: 1. Complete Shell Configuration (+1).
airflow-2-advanced-operators
Sub-skill of airflow: 2. Advanced Operators (+6).
wave-theory-example-1-complete-wave-analysis
Sub-skill of wave-theory: Example 1: Complete Wave Analysis.
viv-analysis-complete-viv-screening-workflow
Sub-skill of viv-analysis: Complete VIV Screening Workflow.
signal-analysis-complete-signal-analysis-workflow
Sub-skill of signal-analysis: Complete Signal Analysis Workflow (+1).