Create, switch and delete a local git branch using git commands
When developers and/or cloud engineers work with coding/Iac, they need to keep their code permanently to save from loss. Github and Azure Devops are typically use by many people.
Git is a version control system can be used in both github and azure devops with exception that Devops's git project can be used git but team foundation server natively not supported by git.
As most of us know TFS is centralized i.e. If I check-in/commit, it directly afftects branches in TFS whereas git is a decentralized i.e. stage/commit only sits in local system repository until it pushes to the remote repository i.e. devops or github
As a best practise, we can have more than branch to work with and avoid directly work on main/master branch. Once tested done, we can make pull request to merge the child branch with main branch
In this post we will learn / refresh to create, switch and delete a branch locally using git commands from the below illustrated image.
Comments
Post a Comment