Skip to content
This repository has been archived by the owner on Nov 28, 2022. It is now read-only.

Commit

Permalink
Merge branch 'master' of github.com:zekroTJA/gitpluscloc
Browse files Browse the repository at this point in the history
  • Loading branch information
zekroTJA committed Apr 26, 2018
2 parents 58c3e33 + 5b6237f commit d4a679a
Showing 1 changed file with 58 additions and 0 deletions.
58 changes: 58 additions & 0 deletions README.md
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

0 comments on commit d4a679a

Please sign in to comment.