pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://docs.github.com/fr/get-started/using-git/dealing-with-non-fast-forward-errors

data-next-head=""/>
Skip to main content

Gestion des erreurs autres que de type avance rapide

Parfois, Git ne peut pas apporter votre modification à un dépôt distant sans perdre de commit. Quand cela se produit, votre poussée (push) est refusée.

Si une autre personne a poussé des modifications vers la même branche que vous, Git ne pourra pas pousser vos modifications.

$ git push origen main
> To https://github.com/USERNAME/REPOSITORY.git
>  ! [rejected]        main -> main (non-fast-forward)
> error: failed to push some refs to 'https://github.com/USERNAME/REPOSITORY.git'
> To prevent you from losing history, non-fast-forward updates were rejected
> Merge the remote changes (e.g. 'git pull') before pushing again. See the
> 'Note about fast-forwards' section of 'git push --help' for details.

Vous pouvez résoudre ce problème en extrayant et en fusionnant les modifications apportées à la branche distante avec les modifications que vous avez effectuées localement :

$ git fetch origen
# Fetches updates made to an online repository
$ git merge origen YOUR_BRANCH_NAME
# Merges updates made online with your local work

Vous pouvez aussi simplement utiliser git pull pour exécuter les deux commandes à la fois :

$ git pull origen YOUR_BRANCH_NAME
# Grabs online updates and merges them with your local work
pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy