Need help to resolve below error:
==========/home/vm/python_practices/==and ==.git/configPermissions details=====
vm@mail:~/python_practices$ ls -l /home/vm/
drwxrwxr-x 7 vm vm 4096 Aug 16 22:52 python_practices
vm@mail:~/python_practices$ ls -l /home/vm/python_practices/.git/config
-rw-rw-r-- 1 root root 92 Aug 16 22:41 /home/vm/python_practices/.git/config
vm@mail:~/python_practices$ cat /home/vm/python_practices/.git/config
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
vm@mail:~/python_practices$
===========BELOW is the OBSERVED ERROR TO GET RESOLVED===============
m@mail:~/python_practices$ git remote add origin GitHub - G-cell-coder/Regex_practice_using_python_programming
error: failed to write new configuration file /home/vm/python_practices/.git/config.lock =======> I have deleted this “to try to get created new one as suggested with stack overflow advice”( Listed the file permission of the directory it holds- along with this request )
fatal: could not set ‘remote.origin.url’ to ‘GitHub - G-cell-coder/Regex_practice_using_python_programming’
==========GIT command used to push the modified code=============
git add *
git status
git branch -M main
git remote add main GitHub - G-cell-coder/Regex_practice_using_python_programming ==> At this step observed above error
git remote -v
======As suggested with stack-overflow tried below options=======
rm git/config.lock’
rm /home/vm/python_practices/.git/config.lock
What steps to recover from above problem ?
If anyone available to connect over morning / evening 8-9 , please confirm to recover this observed problem