If I want to replace the folder on the working branch with the same folder from another branch, I can call:
git checkout OTHER_BRANCH -- /path/to/folder
What does the meaning mean -?
All after -- considered the file name. This is useful in at least two cases:
--
git checkout foo --
git checkout -- foo
git checkout -- -f
git checkout ./-f
Source: https://habr.com/ru/post/1387405/More articles:How to improve application performance using Google Map in it, built using sencha and phoneGap touchscreen? - performanceGeneral Method for Wrapping a Function - c #Need an idea to solve this puzzle algorithm - arraysWCF Service Wrapper - c #How to use WCF service using Autofac? - autofacLinux file information? - cProblems caching Rails? - ruby-on-railsjavascript: void (0) is not accepted by W3C, how to resolve this? - javascriptHow to make a link to a DLL another version of the second DLL? - referenceIPojo - @Reference does not add services - javaAll Articles