Git Repository Update Kodekloud

 

 
 
 
Question: 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/apps.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.
 
 Solution: 
 sudo su
 Copy the index.html file to storage server
 scp /tmp/index.html natasha@ststor01:/tmp 
 
Login to storage server
 
ssh natasha@ststor01
 
Copy the file
cp /tmp/index.html  /usr/src/kodekloudrepos/apps/ 

Then go to repo
git add .
git commit -m "added index.html file"
git push origin master
 
 
 
 
 
 
 
 



Download Coding Interview Book and Get More Tutorials for Coding and Interview Solution: Click Here

Download System Design Interview Book and Get More Tutorials and Interview Solution: Click Here

Do you need more Guidance or Help? Then Book 1:1 Quick Call with Me: Click Here

Share on Google Plus

About Ashadullah Shawon

I am Ashadullah Shawon. I am a Software Engineer. I studied Computer Science and Engineering (CSE) at RUET. I Like To Share Knowledge. Learn More: Click Here
    Blogger Comment
    Facebook Comment

0 comments:

Post a Comment