below is the command
git remote add origin git/repo/path.git
moreover sometimes the path of the existing repository change. In that case, we donât add the origin, we change the existing origin with the following command
git remote set-url origin git/repo/new/path.git