For example, the below image shows that the commit for "Added images and notebook" is now removed. Once the reset has been done, the commits after that commit ID will disappear. Next, cd to the directory where your git repository is on your local machine.Įnter fullscreen mode Exit fullscreen mode With that being said, first open up a terminal using the app of your choice. Note: Although this is targeted at GitHub, there is no reason why it wouldn't work for other git-based repository providers, such as AWS CodeCommit, Azure DevOps or GitLab to name just a few.ĭisclaimer: If you have any commits pending a push, they will be lost.Īlso, please make a backup copy of your files prior to starting this. The solution I came up with is as follows. Now, these image (PNG) files were not huge in size (50KB - 150KB) so way below the maximum size for GitHub but they just would not push. I've done commits and pushes with many source code files before but not with a lot of images. I narrowed the issue down to it being too many files, specifically images, being pushed at any one time. So, what was the issue and what was the solution? Downdetector showed GitHub had no reported issues and it wasn't VS Code's source control extension at fault. Switching to the terminal (not the one in VS Code) and doing a git push from there resulted in the same behavior. I attempted to close VS Code, reopen it and then perform the push again thinking it might have just gotten stuck in the aether of the interwebs but it happened again. Also, checking the commit history on the GitHub repository in a browser showed no sign of the commit. The output for the push in VS Code showed nothing and the git log command just showed the commit as being there but as the head hadn't moved, it wasn't pushed to GitHub. Using various tools, I couldn't find a reason for the issue occurring. It would just show the progress bar going from left to right, with the timer icon showing on the source control icon. Recently I had an issue where a commit I was pushing to GitHub just seemed to be stuck in VS Code. Reset the Commit to the Last Pushed Commit This increases the time I spend on a task by a certain margin. Given that I’m not sure how communication works between yours and GitKraken’s team - or if there is any communication for that matter, I’ve posted this lengthy feedback, maybe it will help someone else or prompt you guys to look into the issue.įor my current client this bug is a serious nuisance because it forces me to do the above steps sometimes even multiple times a day, in addition to reinstalling all dependencies with each new cloning. If I work on a feature branch that points to a different commit other than develop does for either of these submodules, upon trying to switch to develop and pull the latest changes I am continuously prompted to re-authorize GitKraken in Gitlab. I am able to consistently reproduce the issue by working with a repository that uses a number of git submodules. gitkraken folder in Roaming (Windows user here) and cloning the repository again - contacted GitKraken support for that. Meanwhile I managed to correct the issue by deleting the. After reauthorizing again, it says that I am connected.ĭear your for your follow-up on this thread, I really appreciate it. I logged out of gitlab and back in, and after exiting and reopening GitKraken, it continues to say I am not connected. Retry without OAuth gives me an error saying “ Push Failed: failed to write chunk header: The server returned an invalid or unrecognized response” However, it keeps giving me this pop up no matter how many times I re-authorize. I checked inside GitKraken, and I am authenticated. Refresh Token takes me to a GitKraken page in the browser, which indicated that I was authenticated and the system would work. Would you like to refresh your OAuth credentials or try again without OAuth?” and presents the following three options: However, when I went to push, it gave me a pop up saying “ Your OAuth token for ‘Gitlab’ is invalid. This is something I do commonly without error. I am trying to push changes to my branch using the GitKraken GUI.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |