S
S
Semmy_992017-10-13 12:21:20
git
Semmy_99, 2017-10-13 12:21:20

How to set the path to a file in git?

Can you please tell me how to write the path?
For example, I have a main folder in which git is initialized and in the same folder there is an app folder in it index.html.
For example, I want to roll back changes to this file, how can I set the path to it?
git --cheackout file path ?
Total two questions
Please tell me how to move to the file in general and back to the folder with the git?
Well, how to write the actual path to the file?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
G
Georgy Eremeev, 2017-10-13
@jack_azizov

git checkout -- ./app/index.html

G
Gennadiy Balachkov, 2017-10-13
@gennadiy403

git statuswill show all paths to files that can be checked out (if there are changes)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question