DEV Community

A K I L A N
A K I L A N

Posted on

Day - 10 ( CLONING PROJECT IN GIT LAB & git commands)

Cloning the project from remote repo

Git clone - The git clone command creates a local copy of an existing Git repository. It downloads the complete repository, including its history and branches, to your local system.

process-----> go to your project in remote repo ----> the is an option code click that-----> there is url copy that

copy the url then open terminal---> and type

git clone "url"---> then enter the project got coloned

Git commands

  1. Git config - this the first command we used after installing the git,this command allows you to set your username and email.

  2. Git init - this cmd is use to initialize a new git repository .

3.Git status- this show what are you done till in the repository.

4.Git add - to add file ---> git add . - this will add all file in the foldor

5.Git commit- a change is to store a version of your project in the Githistory.

6.Git clone - reates a local copy of an existing Git repository.

7.Git push - To get the changes you just made into the remote repository, you need to push your changes to the remote repository.

8.git switch main - to return to the main branch.(tbd)

9.git branch - To see a list of the branches you have,(tbd)

10.Git checkout - command is primarily used to switch between different branches or restore files in your working directory.(tbd)

Top comments (0)