Clone in Git

Sanjay Singh
1 min readOct 8, 2019

--

Git command line utility which is used to target an existing repository and create a clone, or a copy of the target repository. … Cloning a local or remote repository. Cloning a bare repository.

Simple Command

$ git status

$ git clone <RP Link>

sannj@LAPTOP-UN5EJP9K ****** ~/Desktop/GitClone
$ git status
fatal: not a git repository (or any of the parent directories): .git

sannj@LAPTOP-UN5EJP9K ****** ~/Desktop/GitClone
$ git clone https://gitlab.com/******/gittestingexample.git
Cloning into ‘gittestingexample’…
remote: Enumerating objects: 21, done.
remote: Counting objects: 100% (21/21), done.
remote: Compressing objects: 100% (17/17), done.
remote: Total 21 (delta 5), reused 0 (delta 0)
Unpacking objects: 100% (21/21), done.

sannj@LAPTOP-UN5EJP9K ****** ~/Desktop/GitClone

--

--

Sanjay Singh
Sanjay Singh

Written by Sanjay Singh

Java, Spring Boot & Microservices developer Sharing knowledge, tutorials & coding tips on my Medium page. Follow me for insights & see story list section

No responses yet