still working
This commit is contained in:
parent
08c70cc18f
commit
eb90496cbc
8 changed files with 541 additions and 264 deletions
20
examples/init.d/10_install_git.sh
Normal file
20
examples/init.d/10_install_git.sh
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
#!/bin/sh
|
||||
echo "Installing additional development tools..."
|
||||
|
||||
# Install git and related tools
|
||||
apk add git git-lfs
|
||||
|
||||
# Configure git defaults
|
||||
git config --global init.defaultBranch main
|
||||
git config --global core.editor vi
|
||||
git config --global pull.rebase false
|
||||
|
||||
# Add some helpful git aliases
|
||||
git config --global alias.st status
|
||||
git config --global alias.co checkout
|
||||
git config --global alias.br branch
|
||||
git config --global alias.ci commit
|
||||
git config --global alias.unstage 'reset HEAD --'
|
||||
git config --global alias.last 'log -1 HEAD'
|
||||
|
||||
echo "Git configuration complete."
|
||||
Loading…
Add table
Add a link
Reference in a new issue