0

We have a company Atlassian Bitbucket account which we use for our Source Control Management. I'm trying to add, commit and push files and directories in my project repo to the remote. However, it looks like Git doesn't recognize that new files are being added. It says my 'working tree is clean'.

enter image description here

I also tried other suggested solutions from same questions posted here in StackOverflow, links here, here, and here. And nothing worked.

When I use TortoiseGit, here's how the test path looks like

enter image description here

Meaning, Git or TortoiseGit does not recognize it as part of repository. (Normally TortoiseGit has this red exclamation mark on the file if it's added or changed)

enter image description here

I edited the README file just to show that Git still works on that one. I can still commit and push it. I don't have any gitignore configuration.

I also added some text file (non-empty) within the project folder and the test folder.

enter image description here

enter image description here

Anyone here who has an idea what's going on?

Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129
oikonomiyaki
  • 7,691
  • 15
  • 62
  • 101

1 Answers1

1

This is because your test folder is empty and git ignores all directories.

Does git ignore empty folders?

Community
  • 1
  • 1
  • I revised my post. Kindly look above. – oikonomiyaki Jan 27 '17 at 07:08
  • Did you try git status --ignored and check if there is ~/.gitignore_global file and check inside .git/info/exclude –  Jan 27 '17 at 07:18
  • Your correct, it's because the folders are empty. I think the reason the TortoiseGit icon's not immediately updating on created files it's because I am connected to remote repo via VPN. The icon would update after some minutes. Thanks for your help. – oikonomiyaki Jan 31 '17 at 06:48