# How do you use Git for production scripts?

**URL:** <https://forums.powershell.org/t/how-do-you-use-git-for-production-scripts/21830>\
**Category:** PowerShell Help\
**Created:** [March 7, 2023, 3:07pm UTC](https://forums.powershell.org/t/how-do-you-use-git-for-production-scripts/21830 "2023-03-07T15:07:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sim5151](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.powershell.org/sim5151/32/4369_2.png) [@sim5151](https://forums.powershell.org/u/sim5151)\
**Post date:** [March 7, 2023, 3:07pm UTC](https://forums.powershell.org/t/how-do-you-use-git-for-production-scripts/21830/1 "2023-03-07T15:07:48Z")

</div>

I have to write some scripts which will run as scheduled tasks and exist for a long time. The company has an internal Git server. I’ve never used Git before in a team environment. I’m not sure whether to have:

- one big repo for all such scripts;
- one repo per collection of scripts (e.g. one for AD scripts, etc.)
- one repo per script;

I would appreciate some insights ideally borne of experience.

---

<div class="post-metadata">

**Author:** ![adrimus](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.powershell.org/adrimus/32/4925_2.png) [@adrimus](https://forums.powershell.org/u/adrimus)\
**Post date:** [March 8, 2023, 8:56am UTC](https://forums.powershell.org/t/how-do-you-use-git-for-production-scripts/21830/2 "2023-03-08T08:56:25Z")

</div>

I normally have one big repo for PowerShell and then folders for each collection like AD, exchange, Scheduled tasks, etc. I started off doing other repos for specific tasks but then found it easier to just have everything in the same place. I do have a separate repo for modules though because I was experimenting with pipelines to publish them to an internal repo and I wanted to keep that separate. I suppose it wouldn’t be a be idea to have a separate repo just for scheduled tasks.

---

<div class="post-metadata">

**Author:** ![dotnVo](https://avatars.discourse-cdn.com/v4/letter/d/4af34b/32.png) [@dotnVo](https://forums.powershell.org/u/dotnVo)\
**Post date:** [May 16, 2024, 8:15pm UTC](https://forums.powershell.org/t/how-do-you-use-git-for-production-scripts/21830/3 "2024-05-16T20:15:05Z")

</div>

Closed on May 16, 2024, 8:15pm UTC


