Advertisement
McDoomy

TortoiseGit: Command line helper function

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