Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
marcosbenicio committed Dec 10, 2023
1 parent fdf7b74 commit 440b11e
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -213,12 +213,23 @@ List all the remote repositories:
git remote -v
```

Apply your local commits on top of the remote branch's commits:
Apply local commits on top of the remote branch's commits:

```bash
git pull --rebase origin main
```

Resets branch to the state of commit <commit-hash>, effectively discarding all the commits that came after that:

```bash
git reset --hard <commit-hash>
```

Create a new commit that undoes the changes by the specified commit <commit-hash>. This effectively exclude the commit from the branch without affecting the subsequent commits:

```bash
git revert <commit-hash>
```
------
# **Pipenv**

Expand Down

0 comments on commit 440b11e

Please sign in to comment.