Git Repository Update

Task :

The Nautilus development team started with new project development. They have created different Git repositories to manage respective project’s source code. One of the repo /opt/games.git was created recently. The team has given us a sample index.html file that is currently present on jump host under /tmp. The repository has been cloned at /usr/src/kodekloudrepos on storage server in Stratos DC.

Copy sample index.html file from jump host to storage server under cloned repository at /usr/src/kodekloudrepos, add/commit the file and push to master branch.

Solutions:

# scp /tmp/index.html natasha@ststor01:/tmp
# ssh natasha@ststor01 
# sudo su
# cd /usr/src/kodekloudrepos/games
# cp /tmp/index.html .
# git add index.html 
# git commit -m "add index.html"
# git push origin master

Leave a Reply

Your email address will not be published. Required fields are marked *