In this git repository, I have created a index page, register page and login page using three branches :- 1)Main branch (2) Registeration branch (3) Login Branch.
Git is a version control system that developers use all over the world. It helps you to track different versions of your code and collaborate with other developers.If you are working on a project over time, you may want to keep track of which changes were made, by whom, and when those changes were made. This becomes increasingly important if you end up having a bug in your code! Git can help you with this.
First, Create git repository on gitHub. Then to get the remote repository in your local machine used below command:-
git clone <repository_url>
Now, the copy of your remote repository is available in your local machine.
| Sr.no | Commands |
|---|---|
| 01 | git status |
| 02 | git checkout -b <branch_name> |
| 03 | git add or git add . |
| 04 | git commit -m "commit_message" |
| 05 | git push origin <branch_name> |
| 06 | git pull origin <branch_name> |