1
0
mirror of https://github.com/k88hudson/git-flight-rules.git synced 2025-06-16 21:01:45 -03:00

Update info how to reset local branch to remote-tracking branch (#344)

This commit is contained in:
apastan
2023-02-01 05:17:42 +03:00
committed by GitHub
parent 3ff35c8642
commit 8413701f30
9 changed files with 10 additions and 11 deletions

View File

@ -902,10 +902,10 @@ Confirm that you haven't pushed your changes to the server.
#
```
One way of resetting to match origin (to have the same as what is on the remote) is to do this:
One way of resetting branch `my-branch` to match `origin/my-branch` (to have the same as what is on the remote) is to do this:
```sh
(main)$ git reset --hard origin/my-branch
(my-branch)$ git reset --hard origin/my-branch
```
<a name="commit-wrong-branch"></a>