Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Git not commiting files

I created an executable of my Python Software via Py2Exe, which creates two new directories and multiple files in them. I also created a new Python File for doing this, called setup.py.

Whenever I open up Git GUI it shows the only uncommitted changes are in my .idea\workspace.xml file (this comes up with every commit), and setup.py. My other directories and files that I created do not show up. I've tripled checked that the files are in the correct directory (../Documents/GitHub/..), does anyone know of this happening before, or a solution to it?

EDIT: When trying to add the files, I get the error:

fatal: 'C:\Users\me\Documents\GitHub\Project\SubDir\build' is outside repository

EDIT: Fixed the problem, I wasn't able to add the directories on Friday, but today it let me for what ever reason.


1 Answers

In most cases you have to git add path/to/file to have git track the file (or folder), and your GUI may be filtering the non-tracked files.

Because you are on windows, you may have to open the git shell to use git add. I am fairly certain that Github for Windows allows you to add untracked files pretty easily via checkbox or button next to the filename.

Follow the instructions in the middle of this page to open powershell in the git dir: http://windows.github.com/help.html

Then run the git add command (git add path/to/folder path/to/folder2).

like image 188
freshvolk Avatar answered Mar 25 '26 16:03

freshvolk