News

$ git reset --hard 95d919c After a hard reset takes the repository back to the first commit, the reflog will show the history of all five commits. The log will show only one and won't have any ...
Add some text to the README.md file, then stage and commit the changes: git add . git commit -m "Added changes in feature1" In this example, we have used git add . instead of git add README.md ...
3 ways to undo a git commit There are three commonly used approaches a developer can take to undo their last Git commit and put a new commit in its place: A git revert followed by a new commit. A git ...