20111024

How to merge selected files from a branch in git

I've being learning git for some time and i love it, i will start blogging some tips and tricks about it.

First you need to bookmark this: http://gitref.org/

Now, how to merge selected files from a branch to my master branch?
Move to the branch you want to "merge to", and:

git checkout <branch_you_want_to_merge_from> <file_paths_to_merge...>
view raw gistfile1.sh hosted with ❤ by GitHub

No hay comentarios.:

Publicar un comentario