I plan to have two branches.
dev - contains code with addional logging output
production - contains only code, without logging output
I just created a new commit in dev:
$x = getFoo();
$this->logger->info("Value of x: '$x'");
...
Now I changed to the production branch and try to fetch the local branch dev, without merging it, so that I can remove the logging debug output and create a commit with the same commit message as in dev branch.
Attempt:
So I tried to fetch the local dev branch, but I get:
$ git fetch dev
fatal: 'dev' does not appear to be a git repository
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
How can I solve it?