Giter Club home page Giter Club logo

got's Introduction

got - git for lazy devs

got is a simple CLI with a single shell script that wraps git and makes it easier and faster to use.

Installation

You can copy or symlink got to a file named got in your PATH. For instance:

# Copy
sudo cp ./bin/got /usr/bin/got

Or symlink so it auto updates when you pull this repo:

# Symlink
sudo ln -s ./bin/got /usr/bin/got

Commands

got has only 7 commands:

got push <commit message>

When I commit my changes, I always run the same 3 commands:

  1. git add -A
  2. git commit -a -m <message>
  3. git push

The problem is, there's no reason for me to type these every time. I always want to commit and push everything I changed.

With got, you can just type got push <message> to commit and push your changes. It's also quite helpful when you're in a hurry.

got branch <branch name>

Tries to git switch to a branch, and if it fails, it automatically makes the branch and switches to it for you.

got init <remote>

Runs these commands:

git init
git add -A
git commit -a -m "Initial commit"
git branch -M main
git remote add origin "$REMOTE"
git push -u origin main

This is inspired by the commands GitHub shows you when you make a new empty repository.

got clone <remote>

It's just git clone --recurse-submodules <remote>

got stash

Just git stash, included for same reason as git pull

got restore

its just git stash pop

got pull

Just git pull, included so you can use got for everything and never usually have to use git commands

It's helpful so you don't have to use different CLIs to pull and push, you can just got pull and got push <message>

License

MIT license

got's People

Contributors

amytimed avatar

Watchers

 avatar

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.