There are situations where you just committed a change in git and just after that realized you made a mistake in the last commit. If you haven’t pushed that code then the last local changes can be undone with this command.
Creating Git branch in detached HEAD State
Recently, I came across a situation where I checked out a git branch and it showed me this message related to detached HEAD state: You are in 'detached HEAD' state. You can look around, make experimental changes and commit them, and you can d ...
git – the simple guide
setup Download git for OSX Download git for Windows Download git for Linux create a new repository create a new directory, open it and perform a git init to create a new git repository. checkout a repository create a working copy of a loca ...