PS ISE: Unsaved Projects
-
@stacksofplates said in PS ISE: Unsaved Projects:
This is what Git is for. Why not just use something like VSCode and have a repo for your powershell stuff?
Github or Gitlab? Does it matter for simple powershell scripts?
-
@stacksofplates said in PS ISE: Unsaved Projects:
This is what Git is for. Why not just use something like VSCode and have a repo for your powershell stuff?
This is what I was thinking. Who needs to save code today, your GIT servers will handle that automatically.
-
@pmoncho said in PS ISE: Unsaved Projects:
@stacksofplates said in PS ISE: Unsaved Projects:
This is what Git is for. Why not just use something like VSCode and have a repo for your powershell stuff?
Github or Gitlab? Does it matter for simple powershell scripts?
Does it matter which one you choose? Nope, either will do just fine.
-
@pmoncho said in PS ISE: Unsaved Projects:
@stacksofplates said in PS ISE: Unsaved Projects:
This is what Git is for. Why not just use something like VSCode and have a repo for your powershell stuff?
Github or Gitlab? Does it matter for simple powershell scripts?
For what he's doing it doesn't matter.
GitLab has a lot more features for groups, I like their CI/CD better, and some other niceties. However, in this case it doesn't matter.
-
@stacksofplates said in PS ISE: Unsaved Projects:
@pmoncho said in PS ISE: Unsaved Projects:
@stacksofplates said in PS ISE: Unsaved Projects:
This is what Git is for. Why not just use something like VSCode and have a repo for your powershell stuff?
Github or Gitlab? Does it matter for simple powershell scripts?
For what he's doing it doesn't matter.
GitLab has a lot more features for groups, I like their CI/CD better, and some other niceties. However, in this case it doesn't matter.
I am the same. Just PS scripts mainly for myself and a couple for work
-
@scottalanmiller said in PS ISE: Unsaved Projects:
@stacksofplates said in PS ISE: Unsaved Projects:
This is what Git is for. Why not just use something like VSCode and have a repo for your powershell stuff?
This is what I was thinking. Who needs to save code today, your GIT servers will handle that automatically.
I'll admit - I've not looked at Git - yet I think I have an account.
As for setting up a Git Server? Yea,.. I don't know anything about those - or if one would be permitted in our environment. I happy just having the ability to run PS as I am... and in some cases like the totally vain PS I'm starting now couldn't ever be published to 'public'
-
@gjacobse said in PS ISE: Unsaved Projects:
As for setting up a Git Server?
WTF, would make you jump to that from the prior conversation?
-
@gjacobse said in PS ISE: Unsaved Projects:
As for setting up a Git Server? Yea,.. I don't know anything about those - or if one would be permitted in our environment.
You can use free git "servers" in the cloud, like gitlab.com and github.com, so no need to host your own. Your code doesn't become public because you store it there.
However you must also install git on your local machine where you are editing the scripts. So that might be a problem for you if you have restricted access over your workstation.
Git has limitations that adds a lot of complexity in some scenarios.
-
@stacksofplates said in PS ISE: Unsaved Projects:
@pmoncho said in PS ISE: Unsaved Projects:
@stacksofplates said in PS ISE: Unsaved Projects:
This is what Git is for. Why not just use something like VSCode and have a repo for your powershell stuff?
Github or Gitlab? Does it matter for simple powershell scripts?
For what he's doing it doesn't matter.
GitLab has a lot more features for groups, I like their CI/CD better, and some other niceties. However, in this case it doesn't matter.
I prefer GitLab too. But yeah.
-
@gjacobse said in PS ISE: Unsaved Projects:
@scottalanmiller said in PS ISE: Unsaved Projects:
@stacksofplates said in PS ISE: Unsaved Projects:
This is what Git is for. Why not just use something like VSCode and have a repo for your powershell stuff?
This is what I was thinking. Who needs to save code today, your GIT servers will handle that automatically.
I'll admit - I've not looked at Git - yet I think I have an account.
As for setting up a Git Server? Yea,.. I don't know anything about those - or if one would be permitted in our environment. I happy just having the ability to run PS as I am... and in some cases like the totally vain PS I'm starting now couldn't ever be published to 'public'
If you can’t use hosted solutions for whatever reasons you can just use a box with git installed and push to that. You don’t need a full setup like GitLab or GitHub.
There are other options also: Gitea, Gogs, etc.
-
-
Right now, I'll have to pencil GIT onto the project list. I just don't have the bandwidth to investigate it right now. If the unsaved scripts are lost,... they are lost - my own fault and I recognize that. I had some hope that I could recover them.
I just have to much going on to take on another project I can't truly invest time into. If I start something, I'll just have to ensure I save it - I think I saw something about making PS:ISE autosave....
Thank you for the suggestions and recommendations.
-
@gjacobse said in PS ISE: Unsaved Projects:
Right now, I'll have to pencil GIT onto the project list. I just don't have the bandwidth to investigate it right now. If the unsaved scripts are lost,... they are lost - my own fault and I recognize that. I had some hope that I could recover them.
I just have to much going on to take on another project I can't truly invest time into. If I start something, I'll just have to ensure I save it - I think I saw something about making PS:ISE autosave....
Thank you for the suggestions and recommendations.
It took more time to write this post, then it would to create a git repo.
-
@gjacobse said in PS ISE: Unsaved Projects:
Right now, I'll have to pencil GIT onto the project list. I just don't have the bandwidth to investigate it right now. If the unsaved scripts are lost,... they are lost - my own fault and I recognize that. I had some hope that I could recover them.
I just have to much going on to take on another project I can't truly invest time into. If I start something, I'll just have to ensure I save it - I think I saw something about making PS:ISE autosave....
Thank you for the suggestions and recommendations.
Just use vscode. Hell, even notepad++ does autosave more reliably than ISE. But I've never lost anything I didn't save while working in vscode.
-
@IRJ said in PS ISE: Unsaved Projects:
@gjacobse said in PS ISE: Unsaved Projects:
Right now, I'll have to pencil GIT onto the project list. I just don't have the bandwidth to investigate it right now. If the unsaved scripts are lost,... they are lost - my own fault and I recognize that. I had some hope that I could recover them.
I just have to much going on to take on another project I can't truly invest time into. If I start something, I'll just have to ensure I save it - I think I saw something about making PS:ISE autosave....
Thank you for the suggestions and recommendations.
It took more time to write this post, then it would to create a git repo.
Nah, it's about the same
-
@gjacobse said in PS ISE: Unsaved Projects:
Right now, I'll have to pencil GIT onto the project list
Yes, it's something you should be using as a matter of course all the time. Any time you are doing anything text based - system configurations, writing a script, doing some coding, you should do two things...
- Use an effective tool like VS Code to do it in just because it makes you faster and gives you a standard environment for everything.
- Always store it in a GIT repo. Just start there for everything. Make it a habit so it always goes there first. It's just like a dedicated file store for text.