1.6.0 • Published 2 years ago
g4c v1.6.0
Commands supported
- g4c clone URL
- g4c clone URL DIRECTORY
- g4c clone # (automatically clones from package.json, or secrets file)
- g4c checkout --force HEAD
- g4c pull
- g4c pull --ff-only
- g4c status
- g4c add --all
- g4c commit -m "My commit message"
- g4c push
TODO:
- git # As an alias, comming soon
- g4c add FILE(s)
- g4c add .
- git pull origin pull/123/head
Setup
npm i -D g4c
npm i -g g4c
-- Global install
Goals
- Make common git commands easy to use in JavaScript shells 🚀
- This includes commands such as
git clone
,git pull
, andgit push
.
- This includes commands such as
- Provide configuration options via config file, package.json and ENV variables ⚙️
- This will make it easier for developers to customize the behavior of g4c to match their specific needs.
- Minimize cold-boot time and overhead in browser environments ⏱️
- This is important for web IDEs. By minimizing the cold-boot time, developers can maximize cycle time and review PR's more efficiently.
- Improve the developer experience (DX) for JS devs as much as possible 👩💻
- Following in the foot steps of vite and git to improve workflows.
Configuration Precedence
- First, the long form package.json -> repository field is read
- Then, package.json -> author field is read for email and name
- Then, package.json -> g4c
- Finally, SECRETS.g4c.json can veto all others
- Unless, yoy provided an argument in the command line
All of these are optional:
// SECRETS.g4c.json
{
"proxy": "https://cors.isomorphic-git.org",
"useProxyOnBareMetal": false,
"username": "inu",
"password": "neko",
"authorName": "John Doe",
"authorEmail": "john@example.com",
"repoUrl": "https://github-sucks.com/user/project.git"
}
1.2.0
2 years ago
1.1.1
2 years ago
1.1.0
2 years ago
1.5.4
2 years ago
1.5.2
2 years ago
1.6.0
2 years ago
1.4.1
2 years ago
1.2.3
2 years ago
1.4.0
2 years ago
1.2.2
2 years ago
1.3.0
2 years ago
1.0.7
3 years ago
1.0.6
3 years ago
1.0.5
3 years ago
1.0.2
3 years ago
1.0.4
3 years ago
1.0.3
3 years ago
1.0.0-alpha.1
3 years ago
0.0.12
3 years ago
0.0.11
3 years ago
0.0.10
3 years ago
0.0.9
3 years ago
0.0.8
3 years ago
0.0.7
4 years ago
0.0.6
4 years ago
0.0.5
4 years ago
0.0.3
4 years ago