Reputation: 115
I have a repo to which I have been adding and updating code on a regular basis for the last few months. I just created two new java files. I did a github commit and sync. I noticed on github.com the files did not show up.
I then noticed they do not appear on GitHub Windows. I then created more files and they do not appear in in GitHub either.
Other pre-existing files that have been modified, correctly appear in GitHub and are updated.
I have tried:
Looked at .gitignore.
The path or filenames do not appear in the file.
Looked at .git/info/exclude. File is empty.
On branch master
Your branch is up-to-date with 'origin/master'.
nothing to commit, working directory clean
How do I get github to start recognizing newly created files?
Upvotes: 1
Views: 262
Reputation: 640
If you have untracked java files, try
git add *.java
Then git commit
and push code to repo.....
Upvotes: 1