Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Helper function for using TortoiseGit from a Git for Windows bash terminal
- # Copy and paste into ~/.bashrc
- # Usage: tgit <command> [<more options>] Runs a command
- # tgit /?|--help Opens page with list of commands
- function tgit() {
- if [[ "$1" == "/?" ]] || [[ "$1" == "--help" ]]; then
- start https://tortoisegit.org/docs/tortoisegit/tgit-automation.html
- else
- "/c/Program Files/TortoiseGit/bin/TortoiseGitProc.exe" "/command:$1" "${@:2}" &
- fi
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement