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 [email protected]:/tmp 
 
Login to storage server
 
 
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
 
 
 
 
 
 
 
 






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