Git sloučit konkrétní soubory

Příklady kódu

2
0

git sloučit konkrétní soubory

git checkout [branch where you want to merge]
git checkout [branch where files are located] [path_to_file1] [path_to_file2...]
//You can now see the file added to your next commit with
git status
//Dont forget to commit
git commit -m "message"
//e.g:
git checkout master
git checkout dev src/a_specific_file.c
git commit -m "merged a_specific_file in master"

Související stránky

Související stránky s příklady

V jiných jazycích

Tato stránka je v jiných jazycích

Русский
..................................................................................................................
English
..................................................................................................................
Italiano
..................................................................................................................
Polski
..................................................................................................................
Română
..................................................................................................................
한국어
..................................................................................................................
हिन्दी
..................................................................................................................
Français
..................................................................................................................
Türk
..................................................................................................................
Português
..................................................................................................................
ไทย
..................................................................................................................
中文
..................................................................................................................
Español
..................................................................................................................
Slovenský
..................................................................................................................
Балгарскі
..................................................................................................................
Íslensk
..................................................................................................................