mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-20 06:29:50 +00:00
[macOS] Implement new directories hierarchy (#8741)
This commit is contained in:
committed by
GitHub
parent
5d40b1e213
commit
8d6a01b370
33
images/macos/scripts/build/git.sh
Normal file
33
images/macos/scripts/build/git.sh
Normal file
@@ -0,0 +1,33 @@
|
||||
#!/bin/bash -e -o pipefail
|
||||
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"
|
||||
Reference in New Issue
Block a user