git config --global alias.diffall '!sh diffall.sh'
This is redundant in one way. If you are going to add ‘diffall.sh’ into your $PATH anyway, why not save it as ‘git-diffall’, and save yourself from declaring an alias. Yes, “git diffall” will run it.
More Related Contents:
- How to specify the private SSH-key to use when executing shell command on Git?
- Check if pull needed in Git
- How to programmatically determine the current checked out Git branch [duplicate]
- Add line break to ‘git commit -m’ from the command line
- How do I get bash completion to work with aliases?
- Git alias with positional parameters
- How do I run a shell script without using “sh” or “bash” commands?
- Git Alias – Multiple Commands and Parameters
- How to iterate through all git branches using bash script
- Git Bash is extremely slow on Windows 7 x64
- What is the best practice for dealing with passwords in git repositories?
- Delete all local git branches
- How to add Git’s branch name to the commit message?
- Why does “git submodule add …” write to stderr rather than stdout?
- Checking for a dirty index or untracked files with Git
- How do I disable Git Credential Manager for Windows?
- How to configure git bash command line completion?
- How to enter command with password for git pull?
- Define git alias with the same name to shadow original command
- How do I use Bash on Ubuntu on Windows (WSL) for my VS Code terminal?
- List Git aliases
- Why doesn’t my bash prompt update?
- Count number of lines in a git repository
- Finding most changed files in Git
- Why would I create an alias which creates a function?
- Delete multiple remote branches in git
- PS1 line with Git current branch and colors
- How to get Git log with short stat in one line?
- git stderr output can’t pipe
- Force “git status” to output color on the terminal (inside a script)