A
A
Alexander Bagirov2015-05-30 10:34:08
git
Alexander Bagirov, 2015-05-30 10:34:08

How to make git checkout except some folders?

Good afternoon.
Some time ago, I made a git clone of a project from GitHub (Rails) to my VPS, after which I started using it. I made some changes to it that I needed (including language files). Now the author of the project has added some commits with bug fixes. How can I update my code without losing those edits in language files and other places?
Thanks

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Mark, 2015-05-30
@alexbagirov

git pull --rebase
Edits will not be lost. They may have to be merged in heavily modified files. Simple cases git resolves quite well.

A
Alexander Movchan, 2015-05-30
@Alexander1705

git merge
git-scm.com/book/ru/v1/%D0%92%D0%B5%D1%82%D0%B2%D0...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question