R
R
Roman Romanovich2016-06-06 10:49:14
git
Roman Romanovich, 2016-06-06 10:49:14

Revert styles from a specific commit?

Good afternoon! There was a need to return the file to the state of a specific commit.
What was done:
1. Created a new branch
2. Rolled back to a certain commit
Well, the file that needs to be returned to its original state has remained unchanged. Maybe forgot?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
fetis26, 2016-06-06
@morflot

To pull a file from a specific commit, just do
git checkout <commit> <filename>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question