Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Github for Windows not adding new files

I am using Github for Windows to manage several Git repos. For one of a newly cloned repo, it seems that newly created files appear in the 'X files too be committed' list, but after clicking on the Commit button, a new commit is created but the newly created files are still uncommitted!

enter image description here

I can continue to commit the same files over and over again, creating new commits each time, but the newly created files are simply not committed unless I go to the command prompt and manually do git add .

Is there a setting in Github for Windows that I have missed?

like image 968
Nyxynyx Avatar asked Jun 08 '13 15:06

Nyxynyx


People also ask

Why does git fail to add a file?

The folder which is giving you fatal: adding files failed message on git add command is actually implying that there is another . git folder inside the folder. If you navigate to the particular folder address, you can remove the file and put git add. It should work.

Why are new files not showing up in git status?

If you are working on someone else's code or working in a team, it is quite possible that at some point you add a new file to git, but it just won't show up on git status. You won't be able to stage or add it. This generally happens because of one of the rules in some . gitignore file is blocking that file.


1 Answers

Actually I don't think you are missing anything. I just tested this and this is not the default behaviour. Normally after you commit, the files should be flagged as unsynced. When you click Sync button the committed changes should be pushed to the upstream.

This is most probably a bug.

Before commit:

Before commit

After commit :

After commit

like image 189
Semih Yagcioglu Avatar answered Oct 11 '22 07:10

Semih Yagcioglu