Skip to content

This noob screwed up using GitHub Desktop... how to correct a 100mb file with GitHub desktop? #22350

Discussion options

You must be logged in to vote

I would like to suggest another way that I use a lot: using the Git GUI. It’s a bit different from GH desktop, but still quite easy.

  1. Using the Git bash, navigate (using the  cd ) command to the folder where the Git repo is in.
  2. Type the command  gitk --all
  3. In the top you will see a panel with all of your recent commits
  4. Right-click  the first  commit  before the commit that contained the video and click  Reset master branch to here. Then select the  Hard reset option and click  OKWARNING: THE REPO WILL BE RESET TO THAT COMMIT, YOU WILL LOSE ALL OF YOUR WORK AFTER THAT ONE, INCLUDING WORK THAT YOU DID WITHOUT COMITTING
  5. Done

An alternative way to reach the Git GUI is trough the Windows…

Replies: 8 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@One4377
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
5 participants