$ git clone $URL
$ cd $PROJECT_NAME
$ git reset --hard $SHA1
To again go back to the most recent commit
$ git pull
To save online (remote) the reverted commit, you must to push enforcing origin:
git push origin -f
More Related Contents:
- Message ‘src refspec master does not match any’ when pushing commits in Git
- How do you clone a Git repository into a specific folder?
- Download a specific tag with Git
- How do I clone a subdirectory only of a Git repository?
- How do I clone a single branch in Git?
- Git push requires username and password
- What’s the difference between git clone –mirror and git clone –bare
- What are the differences between git branch, fork, fetch, merge, rebase and clone?
- Why can’t I push from a shallow clone?
- Files showing as modified directly after a Git clone
- How to git-svn clone the last n revisions from a Subversion repository?
- How do I clone all remote branches?
- How do I clone a Git repository into a specific folder?
- How can I clone all remote branches?
- git hooks : is there a clone hook?
- Git clone: Redirect stderr to stdout but keep errors being written to stderr
- Clone A Private Repository (Github)
- What determines default branch after “git clone”?
- How to update a git clone –mirror?
- BitBucket – download source as ZIP
- How to clone a specific Git tag
- How to update a git shallow clone?
- Git clone with custom SSH using GIT_SSH error
- Go to particular revision
- git-clone and post-checkout hook
- Why Isn’t There A Git Clone Specific Commit Option?
- Git clone without .git directory
- git clone from another directory
- How to clone git repository from its zip
- Bower install using only https?