So I am writing a script that initializes a git repository in ~/.cfi
, adds a remote, and pulls it down from the server.
Creating the directory, and initializing the repository work fine. The issue is adding the remote and doing a pull.
From the documentation, it doesn't look like git remote add
has a directory parameter. Same goes for git pull
. Is there a simple way to execute these two commands on the above directory without cd
ing to it?