1
0
mirror of https://github.com/k88hudson/git-flight-rules.git synced 2025-06-17 05:21:35 -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

@ -576,7 +576,6 @@ Assurez-vous que vous n'avez pas poussé vos modifications sur le serveur.
`git status` devrait vous indiquer combien de commits en avance vous êtes par rapport à origin :
```sh
(my-branch)$ git status
(ma-branche)$ git status
# On branch ma-branche
# Your branch is ahead of 'origin/my-branch' by 2 commits.
@ -587,7 +586,7 @@ Assurez-vous que vous n'avez pas poussé vos modifications sur le serveur.
Une des façons de faire pour réinitialiser votre branche afin qu'elle corresponde à origin (afin d'avoir la même chose que le dépôt distant) est de lancer ceci :
```sh
(main)$ git reset --hard origin/ma-branche
(ma-branche)$ git reset --hard origin/ma-branche
```
<a name="commit-wrong-branch"></a>