I have apache web server, linux, ssh access with sudo. And many troubles with editing, uploading, pushing, committing there. Because there are set 755 for dirs, 644 for files, and apache:apache owner
Question: how to upload, push with such permissions or with smallest changes of config. May be using extra soft will be helpful.
Current work process; 1. changing rights/owners 2. making file operations 3. changing rights/owners back or 1. making file operations directly via bash with sudo 2. setting correct rights/owners