The Nautilus application development team has been working on a project repository /opt/demo.git. This repo is cloned at /usr/src/kodekloudrepos on storage server in Stratos DC. They recently shared the following requirements with DevOps team:
Create a new branch nautilus in /usr/src/kodekloudrepos/demo repo from master and copy the /tmp/index.html file (present on storage server itself) into the repo. Further, add/commit this file in the new branch and merge back that branch into master branch. Finally, push the changes to the origin for both of the branches.
1, Login into Storage server
```sh
ssh user@storage-server
```
Move into repository:
sudo su
cd /usr/src/kodekloudrepos/demo
Create a new branch
# ensure current branch is master branch
git branch
# create a new branch
git checkout -b nautilus
Copy files
cp /tmp/index.html .
Commit changes
git add .
git commit -m "added tmp file"
Switch to master branch
git switch master
Finally Merge nautilus branch and push chnages
git merge nautilus
git push
git merge source-branchgit mergetool for visual resolution<<<<<<<, =======, >>>>>>> show conflicts