Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Git push takes forever

Tags:

git

github

ubuntu

When I am trying to push to my remote git repository, but it is taking forever and nothing happens. I waited for so long, but push is never getting finished. My OS is Ubuntu 12.10. Thank you.

like image 220
Codeformer Avatar asked Mar 02 '13 14:03

Codeformer


People also ask

Why is git push taking so long?

Even if you did small changes, some internal things might cause git to push a lot more data. Have a look at git gc. It cleans up your local repository and might speed up things, depending on you issue. Backup strongly advised.

How long does pushing to Github take?

Pushing with git push from the terminal takes less than 5 seconds. Actual behavior: Pushing in Atom takes several minutes.

Why my git push is not working?

If git push origin master not working , all you need to do is edit that file with your favourite editor and change the URL = setting to your new location. Assuming the new repository is correctly set up and you have your URL right, you'll easily be able to push and pull to and from your new remote location.

Can I force git push?

If you have a look at Git's official documentation, you will quickly notice that you can force this command. You can use the --force flag (or -f for short). This can look like an easy workaround when the git push command does not work, but it is rarely recommended — it's not the default behavior for a reason.


1 Answers

Try using the --verbose option to see what actually happens. Even if you did small changes, some internal things might cause git to push a lot more data.

Have a look at git gc. It cleans up your local repository and might speed up things, depending on you issue. Backup strongly advised.

like image 200
phisch Avatar answered Oct 02 '22 12:10

phisch