Create new branch with git command line

Az Codez
DevOps Dudes
Published in
3 min readNov 5, 2021

--

Using the git terminal below are steps in creating a new branch and pushing it to remote repository

Image from https://levelup.gitconnected.com/what-is-git-how-to-use-it-why-to-use-it-explained-in-depth-76a5066abaaa

Say you have made some changes on a branch currently but dont want to put these changes on this branch but instead on a new branch

  • First check your current status of your git
git status
  • Stash your changes, don’t worry…

--

--

Az Codez
DevOps Dudes

Cloud Software Engineer focusing on PHP, Python, JS, CI/CD, GitOps, AWS, Azure, Adobe Commerce. I enjoy code for good projects, tech, gym, nature & travel