Git push not coming out

This is the first time I am talking to git on my PC. I have one repository in D:\MyProjectA\ and an empty repository clone in D:\MyProjectB\ . Then I set the bare clone as origin by running remote add origin D:\MyProjectB .

Now I have made some changes to MyProjectA and want to return them to their original state. When I run git push origin master in Powershell, I see the following output, but the script does not exit. I need to close Ctrl-C. What's happening?

 PS D:\MyProjectA> git push origin master Counting objects: 3, done. Delta compression using up to 16 threads. Compressing objects: 100% (2/2), done. Writing objects: 100% (3/3), 290 bytes | 290.00 KiB/s, done. Total 3 (delta 1), reused 0 (delta 0) 
+5
source share
1 answer

Just to check if the same command will work without a pager?

 git --no-pager push origin master 

If so, enter:

 git config --global core.pager more.com 

Also, with Git 2.16 (recently released), try:

 $env:GIT_REDIRECT_STDERR = "2>&1" 

And see if that helps.

Finally, setting various GIT_TRACE variables can help debug the command.

OP cbp confirms in the comments :

I just had the success of CMD (not Powershell) with GIT_TRACE .
And what I watched is that he worked git pack-objects for a long time. In the end he finished and went out.
Subsequently, launching git push looks much faster.

+2
source

Source: https://habr.com/ru/post/1274841/


All Articles