Copy link to clipboard
Copied
I've installed Git and associated my site with a new Git repository, but I cannot commit any file. Here are some pictures of my preferences
My Git preferences
My Site preferences
My Git installation should be okay, I can open a Git Terminal for example
And the repository is shown as master
Activating the Status checkbox should select every file because this is a fresh repository without any commits - but it doesn't work
When I select a file manually the Commit-Button is still grayed out, I am not able to commit any file.
Please help me to solve this problem.
Hi frankw57151007,
There are some performance issues with the git panel which is why on selecting the main checkbox, all checkboxes are not getting selected and one staging any one file, the commit button is not enabled. These issues have been observed by us too when the repository has a large number of files.
But I would like you to stage and commit these same files from the git terminal which you could invoke from inside DW (from the files panel) and tell us if even then, commit isn't
...Copy link to clipboard
Copied
Hi frankw57151007,
There are some performance issues with the git panel which is why on selecting the main checkbox, all checkboxes are not getting selected and one staging any one file, the commit button is not enabled. These issues have been observed by us too when the repository has a large number of files.
But I would like you to stage and commit these same files from the git terminal which you could invoke from inside DW (from the files panel) and tell us if even then, commit isn't happening. If commit happens, is it quick enough or takes a while.
If even with the terminal you arent able to commit, then the issue is something else, which we'l have to narrow down to.
Thanks,
Archana Kaur,
Dreamweaver
Copy link to clipboard
Copied
Hi Archana,
thank you for your response. I was able to stage and commit the files from the git terminal. My first attempt was a failure because there was an index.lock file in the .git folder. After I had deleted this file everything worked fine. I will answer more detailed tomorrow when I have more time.
Frank
Copy link to clipboard
Copied
Hi Archana,
My website is large, the site contains 5986 files in 469 folders.
I made several trials with Dreamweaver and Git. This means I deleted the .git directory and associated it again with the root of my website several times.
My first attempt to add all files to Git via the the Git terminal failed, because of the index.lock file in the .git folder of my homepage. This file exists because the attempt to add all the files via the Dreamweaver Git window never finished.
After I had deleted this file my attempt to add all files was successful. I made several trials how long it takes to add all the files of my homepage to the Git repository. To my surprise the time varies. The shortest time was 34 seconds, the longest 2 minutes. I have no idea what might have caused these differences.
However, I was now able to commit the files successfully via the Git window.
Now that I know about the time it takes to add all the files of my homepage, I tried it again to do this via the Grit window. But I had no success. After some time the hook on the Status checkbox vanished and that's all. This is a serious error in my opinion and should be fixed. And this attempt leaves the index.lock file in the .git repository which prevents any further attempt.
I suggest the following
Thank you for all your efforts
Frank
Copy link to clipboard
Copied
Thank you for posting this! Its apparently still an issue, but your post helped me move forward. Thanks again.
Copy link to clipboard
Copied
Removing the index.lock as mentioned was my issue, too. Thanks!
Copy link to clipboard
Copied
I'm still having an issue in the git panel on selecting the main checkbox, all checkboxes are not getting selected. My first couple attempts the commit button was grayed out. I had to delete the Git folder in my site directory and start over a few times. Even then, I still can not select the main checkbox, I have to manually tick every check box for every file. How can I fix this?
Copy link to clipboard
Copied
This is still an issue with Dreamweaver and Git. and has yet to be fixed.... 1 YEAR LATER!!!
Copy link to clipboard
Copied
I had same issue couldn't stage/commit any files even one at a time! In my case I just deleted the index.lock file from git folder and it all worked as it should once removed the lock file. Hope this helps others.
Copy link to clipboard
Copied
Also deleteing the index.lock in the repository .git solved my issue. Thanks community.