Giter VIP home page Giter VIP logo

g's Introduction

g

Use instead of git.

Installation:

Using git:

    $ git clone https://github.com/dataf3l/g
    
    # add this line to your .bashrc which adds the g folder to your PATH for your convenience

    $ export PATH=$PATH:/home/<your-user-name>/place/where/you/cloned/g/

    

Using npm:

    $ npm install @dataf3l/g
    
    # add this line to your .bashrc which adds the g folder to your PATH for your convenience

    $ export PATH=$PATH:~/node_modules/@dataf3l/g/

    

Example .bashrc:

    export PATH=$PATH:/s/ntutree/g/
    alias git=g

The reason it was aliased, is because my fingers are used to typing git, when I mean to type g, and I don't want my finger memory to accidentally cause the files in the server to be ont validated.

However, you may choose differently.

Usage:

    g add file
    g add .
    g commit -m "message"
    g push origin branch-name
    g log

Demo

asciicast

You can also alias git to g, so that it's easy.

Features

if the file is a js file, it will try to validate the syntax before adding it to the repo, if the file has bad syntax, it will not be added to the repo.

Supported Languages

  • Javascript (via node)
  • Go (via gofmt)

Support comes from external linkers, we are merely a "linker curator" package.

Upcoming

  • CSS, HTML, XML, JAVA, C++, and any which the community is interested in, feel free to post an issue here requesting your favourite language: (https://github.com/dataf3l/g/issues).

Contributing

Just send me a pull request, contributions are accepted and encouraged

g's People

Contributors

dataf3l avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

g's Issues

Ivan's complaints about the software

User complaint:

It's a git wrapper not a replacement, the one sentence description should be something like "A command line wrapper for GIT that checks for syntax errors on JS and GO files"
Anyway, it would make more sense as an installer of pre-git-add hooks and to make those hooks global

g commit fails

this should not happen:
$ g commit -m "add npm stuff, docs, fix spacing, fix warning, change warning color, improve docs, add npm installation to docs"

error: pathspec 'npm' did not match any file(s) known to git.
error: pathspec 'stuff,' did not match any file(s) known to git.
error: pathspec 'docs,' did not match any file(s) known to git.
error: pathspec 'fix' did not match any file(s) known to git.
error: pathspec 'spacing,' did not match any file(s) known to git.
error: pathspec 'fix' did not match any file(s) known to git.
error: pathspec 'warning,' did not match any file(s) known to git.
error: pathspec 'change' did not match any file(s) known to git.
error: pathspec 'warning' did not match any file(s) known to git.
error: pathspec 'color,' did not match any file(s) known to git.
error: pathspec 'improve' did not match any file(s) known to git.
error: pathspec 'docs,' did not match any file(s) known to git.
error: pathspec 'add' did not match any file(s) known to git.
error: pathspec 'npm' did not match any file(s) known to git.
error: pathspec 'installation' did not match any file(s) known to git.
error: pathspec 'to' did not match any file(s) known to git.
error: pathspec 'docs' did not match any file(s) known to git.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.