Wednesday, November 29, 2017

Git Remote end Hung Up error

When you get a remote hung up error while trying to push the local repository to GitHub server, 2 cases arises.
1. Your local network issues.
2. GitHub upload size limit.
For the first case, to have a resume option, you can use the tool like Sourcetree.
For the second case, even though the individual file size limit is maintained, there is a size limit for pushing the repository but not one the complete code size.
The limit is 2 GB now.
If your repository is of more size.Then we can push in partitions.
This option is available with the help of below command, where the number of commits to be published are limited only till the commit code we specify.
git push <repo_name> <commit ID>:refs/heads/<branch_name>
Let’s say we have 1000 commits and we specify the 50th commit, then the commits from 1 to 50 will be pushed and later are skipped, if we specify the 150th commit later, then as already 50 commits are pushed, the commit range 51 to 150 will be pushed.

No comments:

Post a Comment