Last active
June 15, 2025 09:28
-
-
Save Xisabla/14524c3a460c9438dc5f74084d04c0a3 to your computer and use it in GitHub Desktop.
Git config
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# feat: | |
# feat!: | |
# fix: | |
# chore: | |
# refactor: | |
# ci: | |
# docs: | |
# style: | |
# test: | |
# | |
# NOTICE | |
# | |
# Use conventional commit (https://www.conventionalcommits.org/en/v1.0.0/) style: | |
# | |
# <type>[optional scope]: <description> | |
# | |
# [optional body] | |
# | |
# [optional footer(s)] | |
# | |
# The scope is really facultative but sometimes useful | |
# Use "BREAKING CHANGE: xxx" in the footer and a "!" after the type/scope when introducing a breaking change | |
# While the short description in the title aims to be a short, descriptive and clean as possible, | |
# body is really useful to describe a bit more what was done and the motivation | |
# | |
# Example: | |
# | |
# ``` | |
# fix: prevent racing of requests | |
# | |
# Introduce a request id and a reference to latest request. Dismiss | |
# incoming responses other than from latest request. | |
# | |
# Remove timeouts which were used to mitigate the racing issue but are | |
# obsolete now. | |
# | |
# Reviewed-by: Z | |
# Refs: #123 | |
# ``` | |
# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[init] | |
defaultBranch = main | |
[user] | |
name = Gautier Miquet | |
email = xisabla.dev@gmail.com | |
signingkey = 08562DB7A5E468CB | |
editor = code --wait --reuse-window | |
[core] | |
compression = 9 | |
whitespace = error | |
preloadindex = true | |
editor = code --wait --reuse-window | |
[advice] | |
addEmptyPathspec = true | |
pushNonFastForward = false | |
statusHints = true | |
[interactive] | |
singleKey = true | |
[status] | |
branch = true | |
showStash = true | |
showUntrackedFiles = all | |
[log] | |
abbrevCommit = true | |
date = format:%Y-%m-%d %H:%M | |
[branch] | |
sort = -committerdate | |
[tag] | |
sort = -taggerdate | |
gpgsign = true | |
[diff] | |
context = 3 | |
renames = copies | |
interHunkContext = 10 | |
colorMoved = zebra | |
[commit] | |
template = ~/.git-template | |
gpgsign = true | |
[push] | |
autoSetupRemote = true | |
default = current | |
followTags = true | |
[pull] | |
default = current | |
rebase = true | |
[merge] | |
conflictStyle = diff3 | |
[rebase] | |
autoStash = true | |
missingCommitsCheck = warn | |
[sequence] | |
editor = code --wait --reuse-window | |
[url "git@codeberg.org:"] | |
insteadOf = "cb:" | |
[url "git@github.com:"] | |
insteadOf = "gh:" | |
[alias] | |
s = status | |
d = diff | |
a = add | |
ap = add --patch | |
c = commit | |
cm = commit -m | |
ca = commit --amend | |
cam = commit --amend -m | |
co = checkout | |
cb = checkout -b | |
p = push | |
u = pull | |
b = branch | |
i = init | |
cl = clone | |
l = log --all --graph --pretty=format:'%C(magenta)%h |%C(white) %an | %ad%C(auto) %D%n%s%n' | |
lg = log --oneline --graph --decorate --all | |
hist = log --pretty=format:'%C(yellow)%h%Creset - %s %Cgreen(%cr) %C(blue)<%an>%Creset' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Alias part of ~/.zshrc | |
alias gs="git status" | |
alias gd="git diff" | |
alias ga="git add" | |
alias gap="git add --patch" | |
alias gc="git commit" | |
alias gcm="git commit -m" | |
alias gca="git commit --amend" | |
alias gcam="git commit --amend -m" | |
alias gco="git checkout" | |
alias gcb="git checkout -b" | |
alias gp="git push" | |
alias gu="git pull" | |
alias gl="git log --all --graph --format=%cd --pretty=format:'%C(magenta)%h |%C(white) %an | %ad%C(auto) %D%n%s%n'" | |
alias gll="git log --oneline --graph --all --decorate" | |
alias gb="git branch" | |
alias gi="git init" | |
alias gclone="git clone" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment