Ask Your Question

Establishing and using Git

asked 2020-10-31 19:07:42 -0500

subx99's avatar

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.

edit retag flag offensive close merge delete


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.

Wingware Support's avatar Wingware Support  ( 2020-11-01 09:31:46 -0500 )edit

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", 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", 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)

subx99's avatar subx99  ( 2020-11-01 20:00:32 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2020-11-02 07:19:25 -0500

updated 2020-11-02 07:19:32 -0500

I think the problem is that you want to use C:\Program Files\Git\bin\git.exe as the command line and not git-cmd.exe. Please let me know if that doesn't solve it. Thanks!

edit flag offensive delete link more



I spent a bit of time looking at what you've said here and at first I didn't quite get what you meant. For the sake of clarity for anyone who may follow, copy the string"C:\Program Files\Git\bin\git.exe" to the Git executable preference (assuming set in the same location). The key here is that the exe is one level down from the git-cmd.exe, in the bin folder.

This is the solution. Thanks for your help!

subx99's avatar subx99  ( 2020-11-02 16:03:50 -0500 )edit

Thanks for posting these details!

Wingware Support's avatar Wingware Support  ( 2020-11-04 07:48:39 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools



Asked: 2020-10-31 19:07:42 -0500

Seen: 226 times

Last updated: Nov 02 '20