Git
Some reference bits for Git source control
· Reading time: ~2 minute(s) (328 words) techsupport git notesRetaining chmod permissions for scripts in git repositories
git update-index --chmod=+x your_bash_script.sh
The git documentation provides more information on the update-index command here: https://www.git-scm.com/docs/git-update-index
Clone repository including all submodules
Get the latest commit in the parent repository:
git clone {repository_url}
cd {repository_dir}
# -- OR --
git pull
And then update the submodule:
git submodule update --init --recursive
This should pull the relevant commit for the submodule, but it will be in detached HEAD mode based on the commit of the submodule reference in the parent repository.
(Continue reading)