Local Branching Process (GIT, GITHUB)
Hi all,
In this article, I am going to explain the local branching process and if you join as a new member in any automation project, which steps you need to follow for local branching
Step 1
Step 2
Git Clone <repository URL>
For example:
Git Clone https://github.com/nancytestdemo/NewProjectDemo
After cloning, it will show like this:
Step 3
Recommended by LinkedIn
Step 4
Now as a new team member, you need to do the local branching as you can't start working on the master branch. Please follow the below steps for local branching
Git branch
It will show you the branch name in which you are currently.
Git branch <branchname>
For example
Git branch Feature
It will create a new branch as "Feature"
Git checkout <branchname>
For example
Git checkout Feature
You are now switched to the branch "Feature"
Step 5
You need to ensure that in your IDE, you are working in your "Feature" branch, please follow the below steps to check
Click here to learn how Git branching strategies play a crucial role in managing code development, collaboration, and version control. bit.ly/3XRWRF3
Good article on Git branching. Useful to beginners.
Nice Notes