'How to update a program downloaded from Github using Pip or Git?

I have recently downloaded a program file from Github using the following commands >>>

 $ git clone https://github.com/SomeUser/SomeProgram.git
 $ cd SomeProgram
 $ pip3 install -r requirements.txt

Now a new version of the program has come, how to update to the latest version of the program?

Should I have to use Pip or Git? I would appreciate any help regarding this issue.



Solution 1:[1]

First, update the source code to the latest version:

cd SomeProgram
git pull

Then, install the latest dependencies:

pip3 install -r requirements

Now you should be able to use the updated version

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 FlyingTeller