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 GitHub in first commit, saved it and git status
says there's no changes.
Ok, I think, must have messed something up, git reset --hard HEAD
, and as I understand that should revert everything, but my file is not reverted.
So I think I'm doing something wrong. I edit file in root folder, git status
- shows there are changes, works as suspected, so it works on files in root folder, but not in sub folders.
Am I missing something obvious here?
UPDATE: Evidence, that file I'm editing was really commited (git log --stat
):
if it helps, tree picture:
UPDATE2: Ok, I thought I really messed something up, so I've deleted folder, where was my solution, cloned once again from gitHub, and my local code still differs from existing in gitHub and git status sees no changes, git log origin/master..HEAD
gives nothing.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…