I currently have an issue that I can't properly pin down at the moment.
When I try to use Git through VSCode, either through starting a Git-Bash Terminal or using the GUI tools it takes a monumental amount of time to actually run the commands.
It seems to be random, but as an example when running, "git push -u origin main" it has taken anywhere from 2:37 Minutes up to 17:03 Minutes
In comparison when I run the exact same command on the exact same folder but instead through the stand alone GitBash it takes about 2 seconds to run.
So I was just wondering if anyone could help with either of these two things;
Thank you.
I have tested this on another computer in our environment and then on my personal computer. Zero issues on the personal, but the computers in my work environment are still running Git Commands through VSCode very slowly.
So as I assumed, it is most likely an issue related to something in our environment (but not network related). But I still wish to know why is it taking such a long time or How can I figure this information out myself?
I see that this question has had a lot of views so I just wanted to clarify for anyone else having this issue.
why is it taking such a long time or How can I figure this information out myself?
One possibility is to activate, in your VSCode Git bash session, GIT_TRACE2
flags, that you can see listed here.
At least:
export GIT_TRACE2_PERF=1
# your git commands