git is one of the most used tools in the world,
but there's some routine commands you always do it
corgit'll do all this boring work,
in init command you should type
# init
❯ git init
❯ git add .
❯ git commit -m "$COMMIT_MSG"
❯ git branch -M $BRANCH_NAME
❯ git remote add origin $REPO_URL
❯ git push -u origin $BRANCH_NAME
you should type 6 lines, in corgit you can do it simpley
❯ cgit i
# it's well ask you, commit message, branch name, repo url, and push it
just this
in push command
in original git
# push
❯ git add .
❯ git commit -m "$COMMIT_MSG"
❯ git push
in cgit
❯ cgit ph
# it's well just ask you commit msg
git status in list view
hint: you should install colorls
to show this
in orginal git, if you type git status
it's well show you like this
❯ git status
On branch main
Your branch is up to date with 'origin/main'.
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git restore <file>..." to discard changes in working directory)
modified: README.md
no changes added to commit (use "git add" and/or "git commit -a")
it's not very pretty
but if you type cgit sl
and you can check more in cgit wikis
CorGit is a Cli program can automate init git, push commits and pull.
it's for all platforms
or you can install and configure WSL 👍: recommended
copy this 👇 and paste it in the terminal
❯ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Dev-x-Team/corgit/main/setup)"
❯ cgit <command>
# for help
❯ cgit -h
Usage:
cgit -h: help (this output)
cgit -v: corgit version
cgit -d: show description
cgit -dv: show corgit repo
cgit i: init .git and push origin
cgit s: status
cgit sl: show the status of git by list view
cgit e: push an existing repo
cgit ph: push and commit
cgit pl: fetch and pull
Setup:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Dev-x-Team/corgit/main/setup)"
you can open an issue if you had any problem in https://github.com/Dev-x-Team/corgit/issues
type anyone and hack