🚀 DevOps & SRE Certification Program 📅 Starting: 1st of Every Month 🤝 +91 8409492687 🔍 Contact@DevOpsSchool.com

Upgrade & Secure Your Future with DevOps, SRE, DevSecOps, MLOps!

We spend hours on Instagram and YouTube and waste money on coffee and fast food, but won’t spend 30 minutes a day learning skills to boost our careers.
Master in DevOps, SRE, DevSecOps & MLOps!

Learn from Guru Rajesh Kumar and double your salary in just one year.


Get Started Now!

Git Lab Exercise & Assignment: Working with Local Branch: Part – 3


# 1. See your branches
$ git branch
# 2. Make a new branch, see you're on the new one
$ git checkout -b adding-b
$ git branch -v
# 3. Make a change
$ echo "line1" > new-b.txt
$ git add new-b.txt
$ git commit -m "Added new-b.txt."
# 4. Go back to master, change new.txt
$ git checkout master
$ echo "line2" >> new.txt
$ git commit -a -m "Added line2 to new.txt."
# 5. Note in git log, the adding-b changes are not in master
$ git l
# 6. Note we cannot delete adding-b, it is unmerged
$ git branch -d adding-b
# 7. Merge in adding-b, see the history
$ git merge adding-b
$ cat new-b.txt
$ git l
# 8. Now we can delete adding-b branch
$ git branch -d adding-b
$ git branch -v
Subscribe
Notify of
guest


1 Comment
Newest
Oldest Most Voted
Inline Feedbacks
View all comments

Certification Courses

DevOpsSchool has introduced a series of professional certification courses designed to enhance your skills and expertise in cutting-edge technologies and methodologies. Whether you are aiming to excel in development, security, or operations, these certifications provide a comprehensive learning experience. Explore the following programs:

DevOps Certification, SRE Certification, and DevSecOps Certification by DevOpsSchool

Explore our DevOps Certification, SRE Certification, and DevSecOps Certification programs at DevOpsSchool. Gain the expertise needed to excel in your career with hands-on training and globally recognized certifications.

1
0
Would love your thoughts, please comment.x
()
x