# Git

## Default config

```
[user]
	email = hxd@hexadust.net
	name = Hexa Dust
	signingkey = FF16E5FDA4287A4B018EB2DFD41D2F6DCBCB743C
[pull]
	rebase = true
[init]
	defaultBranch = main
[commit]
	gpgsign = true
```

## Sign commits

```
[user]
	email = hxd@hexadust.net
	name = Hexa Dust
	signingkey = FF16E5FDA4287A4B018EB2DFD41D2F6DCBCB743C
[commit]
	gpgsign = true
```

## Reset author and sign all commits

```bash
git rebase -r --root --exec 'git commit --amend --no-edit --reset-author -S'
```