mirror of
https://github.com/actions/runner-images.git
synced 2025-12-11 03:27:05 +00:00
* [macOS] Refactor the rest of the scripts * Return quotes to config tccdb script * Return quotes to config tccdb script * Revert some changes in ruby scripts * Revert some changes in ruby scripts * Revert some changes chrome script * check errors * check errors 01 * find errors in common-utils * find errors in edge install * find errors in edge install --------- Co-authored-by: Alexey Ayupov <“alexey.ayupov@akvelon.com”>
39 lines
1.2 KiB
Bash
39 lines
1.2 KiB
Bash
#!/bin/bash -e -o pipefail
|
|
################################################################################
|
|
## File: install-git.sh
|
|
## Desc: Install Git and Git LFS
|
|
################################################################################
|
|
|
|
source ~/utils/utils.sh
|
|
|
|
echo "Installing Git..."
|
|
brew_smart_install "git"
|
|
|
|
git config --global --add safe.directory "*"
|
|
|
|
echo "Installing Git LFS"
|
|
brew_smart_install "git-lfs"
|
|
|
|
# Update global git config
|
|
git lfs install
|
|
# Update system git config
|
|
sudo git lfs install --system
|
|
|
|
echo "Disable all the Git help messages..."
|
|
git config --global advice.pushUpdateRejected false
|
|
git config --global advice.pushNonFFCurrent false
|
|
git config --global advice.pushNonFFMatching false
|
|
git config --global advice.pushAlreadyExists false
|
|
git config --global advice.pushFetchFirst false
|
|
git config --global advice.pushNeedsForce false
|
|
git config --global advice.statusHints false
|
|
git config --global advice.statusUoption false
|
|
git config --global advice.commitBeforeMerge false
|
|
git config --global advice.resolveConflict false
|
|
git config --global advice.implicitIdentity false
|
|
git config --global advice.detachedHead false
|
|
git config --global advice.amWorkDir false
|
|
git config --global advice.rmHints false
|
|
|
|
invoke_tests "Git"
|