Jump host thor to storage server
scp command failed due to root permissions to the folder ( /usr/src/kodekloudrepos/beta)
Due to failed i have created /tmp(folder and moved the index.html file to this /tmp folder)
then moved to task folder . checkout the below command
sudo mv index.html /usr/src/kodekloudrepos/beta/
cd /usr/src/kodekloudrepos/beta/
ls
clear
pwd
sudo chown -R natasha:natasha /usr/src/kodekloudrepos/beta/ —> changed permission from root to natasha
ls -l /usr/src/kodekloudrepos/beta/
clear
ls
git add index.html
git status
git commit -m “Add sample index.html to beta directory”
git config --global user.email “[email protected]”
git config --global user.name “natasha”
git commit -m “Add sample index.html to beta directory”
git branch
git push origin master
git config --global --add safe.directory /opt/beta.git
git push origin master
ls -ld /opt/beta.git
ls -l /opt/beta.git/objects
sudo chown -R natasha:natasha /opt/beta.git
git push origin master
git status
Hi @raymond.baoly !!!
Thankyou for the response it worked successfully and could you please let me know the where did i make mistake previously .