https://github.com/andrewmaksimchuk/node-git
https://github.com/andrewmaksimchuk/node-git
Last synced: 9 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/andrewmaksimchuk/node-git
- Owner: AndrewMaksimchuk
- License: mit
- Created: 2022-09-28T19:28:13.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-09-28T20:13:14.000Z (over 3 years ago)
- Last Synced: 2025-02-06T05:43:20.295Z (11 months ago)
- Language: JavaScript
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
## Combine git commands in one
`git add .`
`git commit -m "message"`
`git push -u origin main`
### Usage:
`npm run start "Fix: Crash telephone field" dev`
`npm run test "Fix: Crash telephone field" dev`
`./node-git.js`
`./node-git.js "Fix: Crash telephone field" dev`
`NODE_GIT_TEST=true ./node-git.js`
`node-git`
`node-git "Fix: Crash telephone field" dev`
### NPM scripts
`start` - Run commands with default behavior or with arguments.
`executeble` - Make file "node-git.js" exacutable.
`test` - Test default behavior or with arguments.
`install` - Install package.
`remove` - Remove package.
### Notes
Default branch: "main"
Default commit message: "Init project"
First argument of command is commit message (in double qoutes),
second argument is branch name.