Navigate to the /usr/src/kodekloudrepos/demo repository.
/usr/src/kodekloudrepos/demo
Create a new branch named nautilus from master.
nautilus
master
Copy the /tmp/index.html file into the repository.
/tmp/index.html
Add and commit the copied file to the nautilus branch.
Merge the nautilus branch into the master branch.
Push changes for both nautilus and master branches to the origin.
ssh natasha@ststor01
sudo su -
cd /usr/src/kodekloudrepos/demo
git status
git checkout -b nautilus
git branch
cp /tmp/index.html /usr/src/kodekloudrepos/demo/
git commit -m "add index.html" git checkout master
git merge nautilus
Push the local nautilus branch to the remote origin with upstream tracking using:
origin
git push -u origin nautilus
This sends commits to the remote repository, available for collaborators.
git push -u origin master git status
Last updated 7 months ago