Too Long; Didn't Read
A few weeks ago, I was working on a project that had Husky pre-push hook configured. After working on it for a few days, I noticed that sometimes code is not getting pushed to the remote repository. If the connection is inactive for a certain period of time, it terminates itself due to timeout. Luckily, we can do this in the terminal itself. The terminal must be connected to your GitHub account via SSH. The solution is to keep the connective alive until husky finishes its task.