! [rejeté] maître -> master (non-avance rapide) sur une nouvelle mise à jour de la branche

Dans mon repo, j'ai un master branche, et un new branche.

J'ai travaillé sur new pendant un certain temps, faire des commits, et pousse que je vais. J'ai maintenant décidé de bifurquer new et de l'appeler newest. Donc je n'ai

git checkout -b "newest"

et de la branche a été créé avec succès. J'ai ajouté un fichier, et a commencé à travailler sur elle. J'ai commis mes changements d'un couple de fois.

MAIS quand j'essaie de pousser cette nouvelle branche et mes modifications à origin, j'obtiens cette erreur:

C:\wamp\www\myproj>git push origin
To https://github.com/Imray/Proj.git
 ! [rejected]        master -> master (non-fast-forward)
 ! [rejected]        new -> new (non-fast-forward)
error: failed to push some refs to 'https://github.com/Imray/Proj.git'
hint: Updates were rejected because a pushed branch tip is behind its remote
hint: counterpart. Check out this branch and integrate the remote changes
hint: (e.g. 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details. 

Donc, comme indiqué dans les instructions, j'ai essayé git pull, mais je me suis ensuite:

There is no tracking information for the current branch.
Please specify which branch you want to merge with.
See git-pull(1) for details

    git pull <remote> <branch>

If you wish to set tracking information for this branch you can do so with:

    git branch --set-upstream-to=origin/<branch> newest

Je suis coincé.

Comment puis-je pousser mes nouvelle direction et les modifications apportées à github?

OriginalL'auteur CodyBugstein | 2015-01-01