Replace cd with git -C during in git skylark rules
Replace cd with git -C during in git skylark rules

Use `git -C` instead of `cd` in git skylark rules to be more concise. I think it's probably better to use the built-in changedir functionality of git rather than `cd`ing around manually. Happy to be overruled however if it makes readability better.

Closes #5668.

PiperOrigin-RevId: 207703326

twitter-forks/bazel,meteorcloudy/bazel,twitter-forks/bazel,aehlig/bazel,ButterflyNetwork/bazel,twitter-forks/bazel,cushon/bazel,werkt/bazel,twitter-forks/bazel,davidzchen/bazel,dslomov/bazel,ulfjack/bazel,akira-baruah/bazel,meteorcloudy/bazel,ButterflyNetwork/bazel,bazelbuild/bazel,dslomov/bazel-windows,dslomov/bazel-windows,bazelbuild/bazel,meteorcloudy/bazel,dslomov/bazel,twitter-forks/bazel,dslomov/bazel-windows,ulfjack/bazel,safarmer/bazel,dslomov/bazel,bazelbuild/bazel,aehlig/bazel,bazelbuild/bazel,perezd/bazel,katre/bazel,safarmer/bazel,werkt/bazel,davidzchen/bazel,bazelbuild/bazel,perezd/bazel,safarmer/bazel,katre/bazel,cushon/bazel,akira-baruah/bazel,werkt/bazel,katre/bazel,aehlig/bazel,akira-baruah/bazel,dslomov/bazel-windows,twitter-forks/bazel,safarmer/bazel,katre/bazel,safarmer/bazel,aehlig/bazel,katre/bazel,dslomov/bazel-windows,katre/bazel,cushon/bazel,davidzchen/bazel,twitter-forks/bazel,perezd/bazel,perezd/bazel,ulfjack/bazel,dslomov/bazel,ulfjack/bazel,werkt/bazel,akira-baruah/bazel,aehlig/bazel,dslomov/bazel,meteorcloudy/bazel,davidzchen/bazel,ButterflyNetwork/bazel,akira-baruah/bazel,cushon/bazel,davidzchen/bazel,ButterflyNetwork/bazel,werkt/bazel,safarmer/bazel,aehlig/bazel,meteorcloudy/bazel,davidzchen/bazel,ulfjack/bazel,bazelbuild/bazel,davidzchen/bazel,aehlig/bazel,perezd/bazel,werkt/bazel,dslomov/bazel-windows,dslomov/bazel,meteorcloudy/bazel,meteorcloudy/bazel,dslomov/bazel,cushon/bazel,ulfjack/bazel,perezd/bazel,ButterflyNetwork/bazel,akira-baruah/bazel,ButterflyNetwork/bazel,ulfjack/bazel,cushon/bazel,perezd/bazel