Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zeyu-li/git_initer_powershell
A Git initer, adder, and commits on first run 🤖. Based on https://github.com/Zeyu-Li/Git_initer
https://github.com/zeyu-li/git_initer_powershell
git-automation powershell shell
Last synced: 30 days ago
JSON representation
A Git initer, adder, and commits on first run 🤖. Based on https://github.com/Zeyu-Li/Git_initer
- Host: GitHub
- URL: https://github.com/zeyu-li/git_initer_powershell
- Owner: Zeyu-Li
- Created: 2020-04-12T13:19:39.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-04-12T13:19:44.000Z (almost 5 years ago)
- Last Synced: 2024-11-22T09:23:37.616Z (3 months ago)
- Topics: git-automation, powershell, shell
- Language: PowerShell
- Homepage:
- Size: 1000 Bytes
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Git Initer
This PowerShell Script command inits, adds, and commits the current directory given a first commit message
Based from my [Git_initer]( https://github.com/Zeyu-Li/Git_initer)
## Use
To use, simple put:
```powershell
cmt.ps1 # some commit message hereOR
cmt.ps1
# for a 'first init' commit message```
Code:
```powershell
$commit_message=$args[0]
if (! $commit_message){
$message="first init"
} else{
$message=$commit_message
}git init
git add .
git commit -m \""$message"\"```