I need help to understand a workaround for my problem...I'm a beginner in GIT
BACKGROUND : I need to content manage the configurations files of a server in git, some of the directories have file with different user and groups
Assuming i need to content manage /etc/config. The files underneath config looks something similar to below
-rw-r--r-- 1 www www 658 Feb 17 2011 abc.txt
-rwxr-xr-x 1 exr exr 496 May 28 2019 abc.sh
-rwxrwxrwx 1 stg stg 6666 Apr 9 2020 xyz.sh
ISSUE: during git pull all of the username group & permissions gets changed to root since i'm running git pull as root OR if i sudo to any particular user and run a git pull then the files are owned by that particular user
how do i retain the files with same user and groups?
Please help