git clone https://github.com/test.git
How to pull the data from server
git pull origin master
How to create a new branch?
When developing a new feature, it is considered a good practice to work on a copy of the original project called branch.
git branch <<newbranchname>>
The default branch of every repository is called Master. To create additional branch use git branch <<name>>
To refer the newly created branch use the below command
git checkout <<newbranchname>>
Create a new file called newfile.txt
git add newfile.txt
git commit -m "New file committed"
Now move back to master branch and check the newly created file
git checkout master
You can't find the file because we didn't create a file in master branch
How to merge the branch?
git merge <<newbranchname>>
which will merge the new changes into master.