Git Configuration Reference

gitbeginnercross-platform

Comprehensive Git configuration file with useful aliases, commit settings, and workflow optimizations

#git#config#alias#workflow#productivity

Git Configuration Reference

Overview

Comprehensive Git configuration file with useful aliases, commit settings, and workflow optimizations

Prerequisites

  • Git

Instructions

[alias]
	lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
	cm = commit -m
	co = checkout
	st = status
	hard = reset --hard
	amend = commit --amend
        cc = shortlog -sn --all
[user]
	email = alvaro.freirea@udc.es
	name = Álvaro Freire
[commit]
	gpgSign = true
[pull]
        rebase = true
[init]
        defaultBranch = main

Troubleshooting

If you encounter any issues:

  1. Verify all prerequisites are installed
  2. Check command syntax carefully
  3. Ensure you have necessary permissions

Related Utilities

  • Git Log Formatting
  • Gpg Commit Signing