2017-10-04 2 views
0

Je veux fusionner cette fonctionnalité/réagir-intl branche avec git comme décrit ici =>https://github.com/kriasoft/react-starter-kit/blob/feature/react-intl/docs/recipes/how-to-integrate-react-intl.mdComment fusionner cette fonctionnalité/branche reac-intl avec Git?

J'ai commencé par clonage de la dernière version du React Starter Kit (RSK), comme décrit ici =>https://github.com/kriasoft/react-starter-kit/blob/feature/redux/docs/getting-started.md

$ git clone -o react-starter-kit -b master --single-branch \ 
    https://github.com/kriasoft/react-starter-kit.git MyApp 
$ cd MyApp 

La première étape Comment intégrer React Intl dit « fusion caractéristique/branche réagir-intl avec git »

Comment y parvenir?

J'ai essayé

git merge --no-ff feature/react-intl 

réponse:

merge: feature/react-intl - not something we can merge. 

Merci pour votre temps!

Répondre

1

Pull feature/react-intl branche puisque vous avez seulement oigin/maître branche locale (cause de l'utilisation --single-branche drapeau quand cloné).

$ git remote -v 
# i guess your remote name is 'react-starter-kit' instead 'origin' 

$ git pull react-starter-kit feature/react-intl 

OU, chercher à distance réagir-démarreur-kit puis fusionner avec feature/react-intl branche locale master.

$ git fetch react-starter-kit 
$ git merge feature/react-intl