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:
@ -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>
|
||||
|
Reference in New Issue
Block a user