This repository has been archived by the owner on Nov 28, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:zekroTJA/gitpluscloc
- Loading branch information
Showing
1 changed file
with
58 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
<div align="center"> | ||
<h1>~ gitpluscloc ~</h1> | ||
<strong>A rework of the original zekroBot in node.js</strong><br><br> | ||
</div> | ||
|
||
--- | ||
|
||
|
||
If you want to reuse the code of this project, please read **[this](http://s.zekro.de/codepolicy)** before doing so! | ||
|
||
Have some questions or want to join my developer community discord? Take a look! :^) | ||
<br/><a href="http://discord.zekro.de"><img src="https://discordapp.com/api/guilds/307084334198816769/embed.png"/></a> | ||
|
||
---- | ||
|
||
# First things First | ||
|
||
**ATTENTION** | ||
This tool does not contain git or cloc. It just combines them! So you need to install both first before you can use this tool correctly! | ||
|
||
👉 [**Git**](https://git-scm.com/downloads) | ||
> `$ sudo apt install git-all` | ||
👉 [**Cloc**](https://github.com/AlDanial/cloc) | ||
> `$ sudo apt install cloc` | ||
---- | ||
|
||
# Installation | ||
|
||
If you are using linux, it's recommendet to clone the repository with | ||
``` | ||
$ git clone https://github.com/zekroTJA/gitpluscloc | ||
``` | ||
and then execute the `build.bash` script with | ||
``` | ||
$ bash build.bash | ||
``` | ||
|
||
On Windows, just compile the `gitpluscloc.cpp` with your favorite C++ compiller, put it somewhere you want and the set the PATH variable to use it globally. | ||
|
||
---- | ||
|
||
# Usage | ||
|
||
You can use every git command also with 'cgit', because the tool just passes the arguments directly to git. If you commit with 'cgit', it will automatically cloc in the current directory, creating a cloc file and adding it to the current branch. After, it will commit like git with the given arguments. | ||
|
||
Example working path: | ||
``` | ||
$ git add . | ||
$ cgit commit -m "Added some stuff and fixed some bugs" | ||
$ git push origin dev | ||
``` | ||
|
||
---- | ||
|
||
© 2018 Ringo Hoffmann (zekro Development) | ||
Contact: contact[at]zekro.de |