Git branching - local and remote
Hello all, in this post specially dedicated to all DevOps/DevSecOps Engineers. Where their daily routine will have this commands if we know these we can play with them easily if you don't then it will be horrifies you! Git Branching explained in detailed Prerequisites to this you should be aware git basics and to experiment with these command examples should have git installed on your Mac/Linux or git bash on Windows system. What is the Branch in Git? A Git branch is a separate line of work, where your work will not disturb other DevOps team members work. Branch is a simply a movable pointer to commit, this we can observe using git branch command output wherever you see that '*' prefixed there the pointer pointing. Default branch is master or main (new trend) but it is optional we can name anything when we initiate the git repository. Main branch is the FIRST branch of your project that means once you run the 'git init' then 'git branch' you can observe t...