First time here? Check out the FAQ!
1

Establishing and using Git

  • retag add tags

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.

subx99's avatar
13
subx99
asked 2020-10-31 19:07:42 -0500
edit flag offensive 0 remove flag close merge delete

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.

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

subx99's avatar subx99 (2020-11-01 20:00:32 -0500) edit
add a comment see more comments

1 Answer

0

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!

Wingware Support's avatar
4.1k
Wingware Support
answered 2020-11-02 07:19:25 -0500, updated 2020-11-02 07:19:32 -0500
edit flag offensive 0 remove flag delete link

Comments

1

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
add a comment see more comments

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss.

Add Answer