Last active
January 4, 2022 16:35
-
-
Save h4de5/8fc08a647fb8acdd2a2df51ded882e16 to your computer and use it in GitHub Desktop.
show differences that would come through git pull
This file contains 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
[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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
see: https://stackoverflow.com/questions/180272/how-to-preview-git-pull-without-doing-fetch/48784435#48784435