Support Forums

Projects and Git (what's in your .gitignore file)

Ask your Windows PowerShell-related questions, including questions on cmdlet development!
Forum rules
Do not post any licensing information in this forum.
User avatar
joeypiccola
Posts: 5
Joined: Sun Mar 03, 2013 12:45 pm

Projects and Git (what's in your .gitignore file)

Postby joeypiccola » Mon Mar 20, 2017 7:19 am

I am using Git to version control \ track my projects. I am curious what others have in their .gitignore file, e.g. what files you've decided to selectivity not track? My .gitignore file is below where I don't track any exported .ps1 file and anything containing "TempPoint". I'm finding changes to my .psprojs file seem to be insignificant as well and as such I am considering adding my single .psprojs file to my .gitignore. Is there any important info that I should be tracking in this file?

*.Export.ps1
*.TempPoint.*



Product, version and build: 5.4
(*** Please do not write "latest" as a version, specify a version number ***)
32 or 64 bit version of product: 64
Operating system: win8.1
32 or 64 bit OS: 64
PowerShell Version: 5

DO NOT POST SUBSCRIPTIONS, KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM
User avatar
DevinL
Site Admin
Posts: 1004
Joined: Mon Aug 17, 2015 2:25 pm

Re: Projects and Git (what's in your .gitignore file)

Postby DevinL » Mon Mar 20, 2017 8:37 am

[TOPIC MOVED TO WINDOWS POWERSHELL FORUM BY MODERATOR]
DevinL
SAPIEN Technologies, Inc.
User avatar
DevinL
Site Admin
Posts: 1004
Joined: Mon Aug 17, 2015 2:25 pm

Re: Projects and Git (what's in your .gitignore file)

Postby DevinL » Mon Mar 20, 2017 9:00 am

In the customer support forum, the only people who can reply are SAPIEN staff and the original poster.

As such, I've moved this topic to the Windows PowerShell forum where other community members can chime in on their setup as I know a few people around here use git rather often for their projects (myself included).

Personally, here's my standard .gitignore:

  • *.TempPoint.*
  • *.Export.*
  • *.psprojs
  • internal/

Sometimes, I even have a folder with things that I wouldn't want to have exported, maybe some config files that contain private keys or what have you that shouldn't be public, and that's the internal/ directory is included.
DevinL
SAPIEN Technologies, Inc.
User avatar
davidc
Posts: 4522
Joined: Thu Aug 18, 2011 4:56 am

Re: Projects and Git (what's in your .gitignore file)

Postby davidc » Mon Mar 20, 2017 9:06 am

I also recommend adding the following:

    *.RestorePoint.*
    *.Run.ps1
    *.Package.ps1
David
SAPIEN Technologies, Inc.
User avatar
joeypiccola
Posts: 5
Joined: Sun Mar 03, 2013 12:45 pm

Re: Projects and Git (what's in your .gitignore file)

Postby joeypiccola » Mon Mar 20, 2017 1:48 pm

@davidc & @DevinL,

Thank you both for the reply. I've updated my.gitignore with the suggested changes.

Return to “Windows PowerShell”

Who is online

Users browsing this forum: No registered users and 2 guests