Why isn't Git tracking changes in a subdirectory?

后端 未结 8 1010
萌比男神i
萌比男神i 2020-12-15 07:52

I\'ve created git repository, added code and pushed it to GitHub.

Then locally, I\'ve edited the file Eila.Analyser/Program.cs, that was added to GitHu

8条回答
  •  渐次进展
    2020-12-15 08:26

    PROBELM (In my case)
    Performing a git checkout -b had no effect and my folder and files in that branch were still not visible locally, though they are on our gitlab server.

    SOLUTION
    Copied the SHA hash of last commit in that branch, then locally:

    git checkout -b #SHA Hash

    Now I see the expected sub-directories and files.

提交回复
热议问题