I want to get the contents of the source of a file to write about my local changes. How can I do it from the git console?
I want to get the contents of the source of a file to write about my local changes. How can I do it from the git console?
I imagine you want to overwrite your changes because of some error or something, if you did not do commit
there is still hope xD. It makes a
git checkout tu_branch la_ruta_de_tu_archivo
If you want to download the file as it is from your repository, do a
git pull origin tu_branch
This worked for me. I just have the master branch.
git checkout la_ruta_de_tu_archivo