2012-04-10 3 views
2

私はgitの新人です。私はdevブランチで働いています。ローカルリポジトリのマスターブランチに1つのファイルをマージし、マスターをチェックインする必要があります。それ、どうやったら出来るの?devブランチのファイルをマスターブランチにマージするには

私はこれをguthubのチートシートで見ることができますが、ロジックを参照してください。

git merge laptop/xyz 

ので、ファイルmyfileの場合、

答えて

3

以下の手順に従ってください:私はリンクがあなたの問題に似ていると思う

1) git branch 
* master 
    your_new_brach 
2) git checkout your_new_brach my_file1 my_file2 my_file3 
3) git status # You will see new changes into master branch 
4) git commit -m "'Merge' changes from 'your_new_brach' branch" 

を: How do you merge selective files with git-merge?

+0

リンクチェックします。http ://jasonrudolph.com/blog/2009/02/25/git-tip-how-to-merge-specific-files-from-another-branch/ – Vik

関連する問題