mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-02-22 20:51:17 +01:00
Reanmed to init-git.ps1
This commit is contained in:
parent
c3c17e48d7
commit
e9eddd8070
@ -10,6 +10,7 @@ The following PowerShell scripts can be found in the Scripts/ subfolder:
|
||||
* [download.ps1](Scripts/download.ps1) - downloads the file/directory from the given URL
|
||||
* [empty-dir.ps1](Scripts/empty-dir.ps1) - empties the given directory
|
||||
* [exe_info.ps1](Scripts/exe_info.ps1) - prints basic information of the given executable file
|
||||
* [init-git.ps1](Scripts/init-git.ps1) - initializes the Git configuration
|
||||
* [list-empty-dirs.ps1](Scripts/list-empty-dirs.ps1) - lists empty subfolders in a directory tree
|
||||
* [list-unused-files.ps1](Scripts/list-unused-files.ps1) - lists unused files in a directory tree
|
||||
* [list-cmdlets.ps1](Scripts/list-cmdlets.ps1) - lists the PowerShell cmdlets
|
||||
|
@ -1,7 +1,7 @@
|
||||
#!/snap/bin/powershell
|
||||
|
||||
# Syntax: ./init_git.ps1
|
||||
# Description: initializes Git
|
||||
# Syntax: ./init-git.ps1
|
||||
# Description: initializes the Git configuration
|
||||
# Author: Markus Fleschutz
|
||||
# Source: github.com/fleschutz/PowerShell
|
||||
# License: CC0
|
||||
@ -14,7 +14,7 @@ try {
|
||||
git config --global user.name $UserName
|
||||
git config --global user.email $UserEmail
|
||||
git config --global core.editor $UserEditor
|
||||
echo "Done. Git has been initialized."
|
||||
echo "Done."
|
||||
exit 0
|
||||
} catch { Write-Error $Error[0] }
|
||||
exit 1
|
Loading…
Reference in New Issue
Block a user