Skip to content

Instantly share code, notes, and snippets.

@CarlosDanielDev
Created August 13, 2021 18:16
Show Gist options
  • Save CarlosDanielDev/6b5fb68257c66448f2aec7e7135d711e to your computer and use it in GitHub Desktop.
Save CarlosDanielDev/6b5fb68257c66448f2aec7e7135d711e to your computer and use it in GitHub Desktop.
git config --global --edit
[user]
	name = your name here
	email = [email protected]
[core]
	editor = code --wait
[alias]
	c = !git add --all && git commit -m
	s = !git status -s
	l = !git log --pretty=format:'%C(blue)%h%C(red)%d %C(white)%s - %C(cyan)%cn, %C(green)%cr'
	amend = !git add --all && git commit --amend --no-edit
	count = !git shortlog -s --grep
	edit-commit = !git rebase --interactive
	new-b = !git checkout -b
	push-cb = !git push origin `git rev-parse --abbrev-ref HEAD`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment