sudo dnf update
sudo dnf update git
sudo dnf install git-subtreeThe default git package on amazonlinux does not contain the script for git-subtree, and so the following fails:
[home] git subtree add --prefix .vim/bundle/tpope-vim-surround https://bitbucket.org/vim-plugins-mirror/vim-surround.git main
git: 'subtree' is not a git command. See 'git --help'.The commonly found solution online is to run:
sudo yum update git # For Amazon Linux 2
sudo dnf update git # For Amazon Linux 2023
sudo chmod +x /usr/share/doc/git/contrib/subtree/git-subtree.sh
sudo ln -s /usr/share/doc/git/contrib/subtree/git-subtree.sh /usr/lib/git-core/git-subtreeHowever, that obviously doesn't work if the module itself isn't installed.