Hızlı yanıt: kod örneği
when you do with specific branch or commit, the staging area is updated as well as the working directory. So, the version of that is in head's parent and copy it to both the staging area and the working directory.If you do not specify a commit or branch then the contents of hello.txt will be copied from the staging area to the working directory. The staging area itself is not changed.
git checkout
hello.txt