Skip to main content
added 58 characters in body
Source Link
Kevin Panko
  • 7.4k
  • 23
  • 45
  • 53

Just set an alias so when you call the git command it calls the right one instead of the wrapper...

alias git="/usr/local/git/bin/git"

Mac-mini:/$ git -version xcode-select: note: no developer tools were found at '/Applications/Xcode.app', requesting install. Choose an option in the dialog to download the command line developer tools.

Mac-mini:/$ alias git="/usr/local/git/bin/git"

Mac-mini:/$ git -version Unknown option: -version usage: git [--version] [--help] [-c name=value] [--exec-path[=]] [--html-path] [--man-path] [--info-path] [-p|--paginate|--no-pager] [--no-replace-objects] [--bare] [--git-dir=] [--work-tree=] [--namespace=] []

alias git="/usr/local/git/bin/git" 

Mac-mini:/$ git -version
xcode-select: note: no developer tools were found at '/Applications/Xcode.app', requesting install. Choose an option in the dialog to download the command line developer tools.

Mac-mini:/$ alias git="/usr/local/git/bin/git"

Mac-mini:/$ git -version
Unknown option: -version
usage: git [--version] [--help] [-c name=value]
           [--exec-path[=<path>]] [--html-path] [--man-path] [--info-path]
           [-p|--paginate|--no-pager] [--no-replace-objects] [--bare]
           [--git-dir=<path>] [--work-tree=<path>] [--namespace=<name>]
           <command> [<args>]

Just set an alias so when you call the git command it calls the right one instead of the wrapper...

alias git="/usr/local/git/bin/git"

Mac-mini:/$ git -version xcode-select: note: no developer tools were found at '/Applications/Xcode.app', requesting install. Choose an option in the dialog to download the command line developer tools.

Mac-mini:/$ alias git="/usr/local/git/bin/git"

Mac-mini:/$ git -version Unknown option: -version usage: git [--version] [--help] [-c name=value] [--exec-path[=]] [--html-path] [--man-path] [--info-path] [-p|--paginate|--no-pager] [--no-replace-objects] [--bare] [--git-dir=] [--work-tree=] [--namespace=] []

Just set an alias so when you call the git command it calls the right one instead of the wrapper...

alias git="/usr/local/git/bin/git" 

Mac-mini:/$ git -version
xcode-select: note: no developer tools were found at '/Applications/Xcode.app', requesting install. Choose an option in the dialog to download the command line developer tools.

Mac-mini:/$ alias git="/usr/local/git/bin/git"

Mac-mini:/$ git -version
Unknown option: -version
usage: git [--version] [--help] [-c name=value]
           [--exec-path[=<path>]] [--html-path] [--man-path] [--info-path]
           [-p|--paginate|--no-pager] [--no-replace-objects] [--bare]
           [--git-dir=<path>] [--work-tree=<path>] [--namespace=<name>]
           <command> [<args>]
Source Link

Just set an alias so when you call the git command it calls the right one instead of the wrapper...

alias git="/usr/local/git/bin/git"

Mac-mini:/$ git -version xcode-select: note: no developer tools were found at '/Applications/Xcode.app', requesting install. Choose an option in the dialog to download the command line developer tools.

Mac-mini:/$ alias git="/usr/local/git/bin/git"

Mac-mini:/$ git -version Unknown option: -version usage: git [--version] [--help] [-c name=value] [--exec-path[=]] [--html-path] [--man-path] [--info-path] [-p|--paginate|--no-pager] [--no-replace-objects] [--bare] [--git-dir=] [--work-tree=] [--namespace=] []