Permissions for /opt/aura for git as the current user
If you want to change the branch as the current user (not aura) in the /opt/aura
directory the permissions do not allow that. I would suggest a info note in the docs about adding the current user to the aura group, or change the ownership of /opt/aura/
.
Cause
# this is specific for testing
git checkout --track origin/1.0.0-alpha2
Output
fatal: Unable to create '/opt/aura/.git/index.lock': Permission denied
Suggested Solution
Add the current user to the aura group and give the /opt/aura
directory group write permission.
sudo usermod -a -G aura "$USER" && sudo chmod -R g+w .