Creating ,deleting,and writing the files from powershell on VScode.
Table of contents
No headings in the article.
you can use the following command to create an empty file:
New-Item -ItemType File -Path "chapter1.txt"
Alternatively, you can also use the following command to create an empty file using the redirection operator >: "" > "chapter1.txt"
Again, replace "chapter1.txt" with the desired file name and provide the correct path where you want to create the file.
delete the file using powershell Remove-Item -Path "path_to_file"
open the file in powershell Invoke-Item -Path "path_to_file"
Start-Process -FilePath "path_to_file"
Get-ChildItem -Force
git status
git commit -m "Initilal Commit"