🔴 FREE LIVE WEBINAR
How to Become a DevOps Engineer in 2027
From Zero to DevOps Champion!
November 21st, 2026 | 9:30 AM CST
Live DevSecOps CI/CD Demo
Career Roadmap • Live Q&A
🚀 REGISTER FOR FREE
🚀 NEW WEEKEND BATCH
AI-Enabled DevSecOps & Cloud Engineering Bootcamp
Starts December 5th, 2026
Sat: 9:30 AM – 11:30 AM CST
Sun: 10:30 AM – 12:30 PM CST
15 Weeks • 70+ Labs • Live Training
EXPLORE BOOTCAMP →
3,500+
Students Trained
25+
Years of IT Experience
70+
Hands-On Labs
🔴 FREE Webinar | Nov 21 Register Free
🚀 New Batch | Dec 5 Explore Bootcamp
🎁 FREE Career Roadmap Get Roadmap

Thursday, April 1, 2021

How to create another branch from Main branch using command line

 Go to your EC2 instance or where ever your code exists in local repository. login to your instance and go to your repo.

cd reponame

Now let's create a new branch called develop from main branch.

git checkout -b develop

Now you can see how many branches are created locally.

git branch

git push --set-upstream origin develop


That is how you create a new branch from command line and push that branch into Remote repo.

No comments:

Post a Comment

FREE LIVE WEBINAR | How to Become a DevOps Engineer in 2027

 🚀 Your Future in DevOps Starts Here! New Skills. New Opportunities. A New Career Direction. The world of technology is evolving faste...