Establishing and using Git
I'm trying to get Git set up and working for a project and looking to get a better understanding how it works.
Initially I had added a project in Wing Pro with several files, and working on the git command line, I created the init and added my files. When I make changes in Wing, I can access the Git> add (etc) menus but nothing seems to happen. When I use Git>commit it does not commit. If I run a status from the Git command line, the files show as edited but not staged.
I figure I must be missing something in the set up between Wing and Git. Because I can't seem to get it working I attempted to create a new project as a test, and am now also wondering if the Git> init must be first run outside of Wing as I don't see how to do it from within Wing.
Comments
Does it work to do 'git commit' etc on the command line? Wing is just calling the command lines. You can see output of those commands with Options > Show Console in the Git tool in Wing. That might show us what is going wrong, if it's not the same behavior as on the command line outside of Wing.
And yes, Wing currently expects the repository to already be set up and just scans the directory/ies added to the project to find revision control repositories. We may add more support for this in the future, at least in the context of the New Project dialog.
When you say "does... 'git commit' etc on the command line", do you mean from within Wing? It works within git.exe command line.
In my current project, using git.exe cmd line > git status shows I have two modified files. If I select one of these on the project tree in Wing and right-click> Git > Add, the console tab within the Git tab shows "c:\Program Files\Git\git-cmd.exe add fileName.py", and the Output tab is blank. There are no other tabs contained within the Git tab at this point.
If I now select the Options > Status menu in the Git tab, the console shows "c:\Program Files\Git\git-cmd.exe status --porcelain -z fileName.py", and the Status tab is blank. There are no other tabs at this point within the Git tab.
If I now select Options > Commit , the tabs Message,Diff,Files,Output and ... (more)