Posts

Showing posts with the label throw

Git Throw Away Local Commits

Image
Git Throw Away Local Commits . Discard all of the recent commit’s changes. The staging area (index) is a container where git gathers all changes which will be part of the next commit. "Git force pull" Replace local changes with latest commit [Tutorial] from www.datree.io Join a live webinar and learn from a git professional. One can clearly see last commit (i.e. This will reset the state of the repository to the previous commit, and it will discard all local changes.