# Best way to automatically push saves to repo

**URL:** <https://forum.inductiveautomation.com/t/best-way-to-automatically-push-saves-to-repo/35874>\
**Category:** General Discussion\
**Tags:** ignition80\
**Created:** [June 22, 2020, 3:39pm UTC](https://forum.inductiveautomation.com/t/best-way-to-automatically-push-saves-to-repo/35874 "2020-06-22T15:39:49Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![pandreoli](https://avatars.discourse-cdn.com/v4/letter/p/94ad74/32.png) [@pandreoli](https://forum.inductiveautomation.com/u/pandreoli)\
**Post date:** [June 22, 2020, 3:39pm UTC](https://forum.inductiveautomation.com/t/best-way-to-automatically-push-saves-to-repo/35874/1 "2020-06-22T15:39:49Z")

</div>

So I’ve been trying to set up version control for Ignition. I’ve been following [this article for setting it up properly.](https://inductiveautomation.com/resources/article/ignition-8-deployment-best-practices#gitlab-example). I chose to employ the Shared Development Environment strategy (there is a dedicated dev server that all devs work on, its connected to the development branch).

I am on step 5 of the GitLab example. I have created the script for automatically pushing changes on save (as seen below), and the Update Gateway event script executes the script on save.

```auto
NOW=$(date +"%m-%d-%Y %H:%M:%S")
git add .
git commit -m "Designer save @ $NOW"
git push origin

```

My question: Is there a way I can pass along some parameters for the commit message?

Lets say I want to add the username to it so I can track who made the change. I dont see a way of doing that using the Update Gateway event script. Is there possibly a better way of conducting automatic pushing to the development branch?

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [June 22, 2020, 3:49pm UTC](https://forum.inductiveautomation.com/t/best-way-to-automatically-push-saves-to-repo/35874/2 "2020-06-22T15:49:20Z")

</div>

Presently, no. We have plans to provide more parameters/information to the project update script hook (resources that were modified, username(s), etc, if possible) - not completely locked down yet, but something along those lines.

---

<div class="post-metadata">

**Author:** ![pandreoli](https://avatars.discourse-cdn.com/v4/letter/p/94ad74/32.png) [@pandreoli](https://forum.inductiveautomation.com/u/pandreoli)\
**Post date:** [June 22, 2020, 3:54pm UTC](https://forum.inductiveautomation.com/t/best-way-to-automatically-push-saves-to-repo/35874/3 "2020-06-22T15:54:54Z")

</div>

Thanks for the info! I’ll keep an eye out for this in the change logs then.

---

<div class="post-metadata">

**Author:** ![rcrownover](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/rcrownover/32/17805_2.png) [@rcrownover](https://forum.inductiveautomation.com/u/rcrownover)\
**Post date:** [August 20, 2020, 2:57pm UTC](https://forum.inductiveautomation.com/t/best-way-to-automatically-push-saves-to-repo/35874/4 "2020-08-20T14:57:25Z")

</div>

> [@paul-griffith](#):
>
> We have plans to provide more parameters/information to the project update script hook (resources that were modified, username(s), etc, if possible) - not completely locked down yet, but something along those lines.

To add to the list, is the "origin" of the update, i.e. "Designer Save" or "External" (meaning from the filesystem), etc.. Being able to filter actions for certain origins/sources would _really_ help for a lot of scenarios using external version control to migrate changes across different environments.

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [January 3, 2022, 7:56pm UTC](https://forum.inductiveautomation.com/t/best-way-to-automatically-push-saves-to-repo/35874/5 "2022-01-03T19:56:31Z")

</div>

> [@How to: Committing project to Git with author and timestamps](https://forum.inductiveautomation.com/t/how-to-committing-project-to-git-with-author-and-timestamps/48662/7):
>
> This is landing in 8.1.14 via parameters named actor and resources; they'll be covered in the docs soon, but until we migrate gateway functions to 'extension-function' style, they're just magic named parameters available implicitly.
