Showing posts with label git. Show all posts
Showing posts with label git. Show all posts

Sunday, February 6, 2022

Tuesday, April 27, 2021

Git Github Messed Up

Did you screw up your local repo? Don't want to mess up the real, online repo? Or maybe you got a weird error when trying to sync/ push your commit? For instance, mistakenly added a large (over 100 KB?) binary that GitHub won't accept? Then you need RESET. I don't know why RESET is not explained in basic tutorials. In Visual Studio, you have to go to View History.... then right click and select RESET at the last good branch. (choose "hard" to delete all changes, otherwise it probably will get a lot more complicated). Warning: This might not be as simple as it seems. But so far, this seems to have done what I needed.

Thursday, October 5, 2017

Git Git!

  1. Commit will simply make record of your changes that you have made on your local machine. It will not mark the change in the remote repository.
  2. Commit and Push will do the above and push it to the remote repository. This means that any changes you have made will be saved to the remote repository as well.
  3. Commit and Sync does three things. First, it will commit. Second, it will perform a pull (grabs the updated information from the remote repo). Finally, it will push.
Microsoft tutorial here:


  • fetch , which downloads the changes from your remote repo but does not apply them to your code.
  • merge , which applies changes taken from fetch to a branch on your local repo.
  • pull , which is a combined command that does a fetch and then a merge.