# Committing Project to Git

**URL:** <https://forum.inductiveautomation.com/t/committing-project-to-git/33928>\
**Category:** Ignition Early Access\
**Created:** [April 14, 2020, 8:00pm UTC](https://forum.inductiveautomation.com/t/committing-project-to-git/33928 "2020-04-14T20:00:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon55648468](https://avatars.discourse-cdn.com/v4/letter/a/f6c823/32.png) [@anon55648468](https://forum.inductiveautomation.com/u/anon55648468)\
**Post date:** [April 14, 2020, 8:00pm UTC](https://forum.inductiveautomation.com/t/committing-project-to-git/33928/1 "2020-04-14T20:00:08Z")

</div>

Hi guys, i was following the great info from [here](http://forum.inductiveautomation.com/t/best-practices-for-svn-git-on-projects/30218) but have hit a bit of a snag. After getting it to work in the script playground, for some reason the same script doesn’t complete the action.

What is strange, the add script works but the commit does not. I had to alter slightly from the link above, i am testing on a windows machine so the git.exe path is specified. This script is located in the Project Update -  
projects\_directory = ‘C:\Program Files\Inductive Automation\Ignition\data\projects’  
gitExe = ‘C:\Program Files\Git\Bin\git.exe’

commit\_command = ‘{ge} -C {pd} commit -m {msg}’.split(’ ')  
commit\_command[0] = gitExe  
commit\_command[2] = projects\_directory  
commit\_command[5] = “testing”  
subprocess.call(commit\_command)

---

<div class="post-metadata">

**Author:** ![justin.brzozoski](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/justin.brzozoski/32/13452_2.png) [@justin.brzozoski](https://forum.inductiveautomation.com/u/justin.brzozoski)\
**Post date:** [April 14, 2020, 8:18pm UTC](https://forum.inductiveautomation.com/t/committing-project-to-git/33928/2 "2020-04-14T20:18:27Z")

</div>

Any output in the wrapper log from the “git add” or “git commit” commands?

The fact that you got the add working implies you got all your paths right, and commit should be very simple after that… I’m not sure what might be going on.

---

<div class="post-metadata">

**Author:** ![justin.brzozoski](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/justin.brzozoski/32/13452_2.png) [@justin.brzozoski](https://forum.inductiveautomation.com/u/justin.brzozoski)\
**Post date:** [April 14, 2020, 9:01pm UTC](https://forum.inductiveautomation.com/t/committing-project-to-git/33928/3 "2020-04-14T21:01:39Z")

</div>

Another thought: could your issue be related to file access permissions? I had to make sure to always access git as the same user that the Ignition service runs under. If you try to modify the repository while logged in as someone else, it may fail because that user can’t access the files under .git or possibly change ownership of those files and prevent the original user from accessing them later.
