if I have two git projects on my machine with two different ProjectNames

can I manage it with this code in two directories like this

/foo1$ git remote add origin git@github.com:username/ProjectName-1
/foo2$ git remote add origin git@github.com:username/ProjectName-2

Is it getting stored in the directory or in a git config file in system?

Edit
Report