0

I have cloned the repository locally using the command,"git clone repository-url" to my local machine.Now suppose if there is any changes in the repository,How do I update it in local machine.Is there any command to do it? another command 'git status' gives me the info of the repository is updated or not.but how do i update my local repository folder with the new change. Cloning again is not possible. Any help would be appreciated

user123
  • 11
  • 1
  • 3

1 Answers1

1

To answer your basic question: You need to execute git pull inside the folder created by the git clone.

Example for clone:

git clone https://gitserver/repository.git

This creates a folder named repository.

To update you have to change into the folder created and issue a git pull:

cd repository
git pull
Uwe Plonus
  • 9,803
  • 4
  • 41
  • 48