Skip to content

Instantly share code, notes, and snippets.

@arizz96
Created January 30, 2024 14:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arizz96/28a58103614b9395d89a70cc5a28f5ec to your computer and use it in GitHub Desktop.
Save arizz96/28a58103614b9395d89a70cc5a28f5ec to your computer and use it in GitHub Desktop.
Global git configuration
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
[user]
name = ...
email = ...
[core]
editor = nano
[alias]
squash = "!sh -c \"git merge --squash $1 && git commit -m '[SQUASHED] $1'\""
reset-origin = "!sh -c \"git fetch origin `git branch --show-current` && git reset --hard origin/`git branch --show-current`\""
irebase = "!sh -c \"git rebase -i $1^\""
rebase-continue = "!sh -c \"git add . && GIT_EDITOR=true git rebase --continue\""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment