Push does not go to remote and does not error

Asked

Viewed 510 times

1

I’m making git push -f origin "branch name" and it doesn’t go to the remote repository at all. Since no error appears, I also changed some configs of buffers, which I do to solve?

Counting objects: 267, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (192/192), done.
Writing objects: 100% (267/267), 14.28 MiB | 0 bytes/s, done.
Total 267 (delta 62), reused 195 (delta 31)
  • 1

    Strange not to have reported any error. Tries to clone the repository again and overwrites your changed files, commits and then pushes.

1 answer

1

First, you’re trying to make a push -f, check if you have authorization for this.

Second, their commits total 14MB, make sure you have large files and your remote repository supports files of these sizes.

Check that your remote repositories are configured correctly: git remote -v should display something like:

origin  [email protected]:gabrsar/dotfiles (fetch)
origin  [email protected]:gabrsar/dotfiles (push)

Make sure the addresses are correct.

If all this is correct, try the following:

Try to do the same process without the -f, and check if there are any errors.

The parameter -v will push verbose, showing all error messages. Check if any error or warning appears (Warning).

If possible paste the result of git push origin nome_do_branch -fv. so that we can better help.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.