CopyPastor

Detecting plagiarism made easy.

Score: 0.9187010582586396; Reported for: String similarity Open both answers

Possible Plagiarism

Plagiarized on 2022-10-03
by amir

Original Post

Original - Posted on 2011-02-23
by Ben Jackson



            
Present in both answers; Present only in the new answer; Present only in the old answer;

If your excess commits are only visible to you, you can just do git reset --hard origin/<branch_name> to move back to where the origin is. This will reset the state of the repository to the previous commit, and it will discard all local changes.
Doing a git revert makes new commits to remove old commits in a way that keeps everyone's history sane.
If your excess commits are only visible to you, you can just do `git reset --hard origin/<branch_name>` to move back to where the origin is. This will reset the state of the repository to the previous commit, and it will discard all local changes.
Doing a `git revert` makes *new* commits to remove *old* commits in a way that keeps everyone's history sane.

        
Present in both answers; Present only in the new answer; Present only in the old answer;