Skip to content

Instantly share code, notes, and snippets.

@h4de5
Last active January 4, 2022 16:35
Show Gist options
  • Save h4de5/8fc08a647fb8acdd2a2df51ded882e16 to your computer and use it in GitHub Desktop.
Save h4de5/8fc08a647fb8acdd2a2df51ded882e16 to your computer and use it in GitHub Desktop.
show differences that would come through git pull
[user]
name = Username
email = [email protected]
[alias]
# fetches the current branch - than does a diff between the working copy and this fetched branch.
# so you should only see the changes that would come with git pull.
diffpull=!git fetch && git diff HEAD..@{u}
# lists all branches
branchlist=!git branch --list -vva
# undos the last commit, leaves changes in staged
undocommit=!git reset --soft HEAD~1
# on wsl
[credential]
helper = /mnt/c/Program\\ Files/Git/mingw64/libexec/git-core/git-credential-manager.exe
# on windows
[credential]
helper = wincred
[core]
autocrlf=false
@h4de5
Copy link
Author

h4de5 commented Feb 14, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment