Skip to content

Zeyu-Li/Git_initer_PowerShell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Git Initer

This PowerShell Script command inits, adds, and commits the current directory given a first commit message

Based from my Git_initer

Use

To use, simple put:

cmt.ps1 # some commit message here

OR

cmt.ps1
# for a 'first init' commit message

Code:

$commit_message=$args[0]

if (! $commit_message){
    $message="first init"
} else{
    $message=$commit_message
}

git init
git add .
git commit -m \""$message"\"