Coder Social home page Coder Social logo

qs-an's Introduction

Quick source management tool

Installation Prerequisites

gh version > 2.27

git

  • $Git\usr\bin must be in PATH
    • gives yes, grep, sed and other Unix utilities

xclip

For linux additionally: sudo apt install xclip

Installation

go install github.com/untillpro/qs@latest

Basic Usage

Must be run in cloned github repo folder. Path qs.exe should be added to system PATH env variable.

  • qs: show status of current folder

  • qs d : Download sources (git pull)

  • qs u -m [message] : Upload sources (git add + commit + push)

  • qs r : Create release

  • qs g : Shows Git GUI

  • qs -h, qs --help : Help for qs

  • qs -v, qs --verbose : Verbose output

  • qs fork : Forks repo to user's account and creates upstream

  • qs dev repo-name : Make new dev branch with name repo-name Repo-name can be copied as - [Name and Permanent link] from Project Kaiser task. - URL of github issue with issue number. If a buffer contains link on issue number, qs dev creates brnach and links it to github issue

  • qs dev -d : Deletes branches in user's repository, which were accepted & mergred to parent repo

  • qs dev -i, 'qs dev --ignore-hook' : Create developer branch and does not ask to add hook against large files.

  • qs pr : Create pull request. Title is taken from name of topic in "qs dev" command : If a branch is linked to github issue, qs pr makes a pull request, linked to that issue.

  • qs pr -d, qs pr --draft : Create pull request draft.

  • qs pr merge [PR URL] : Merge pull request.

Note:

  • qs u takes comment from clipboard. If current branch is "main/master", and message is empty or very short (<3 symbols), qs willask to enter message. If the message is too short, it shows error:
    ---- Too short comment not allowed! ---

Prevent large commits

Command 'qs dev' creates a developer branch and after success, it shows the following question:

   Git pre-commit hook, preventing commit large files does not exist.
   Do you want to set hook(y/n)?
  • On 'y', qs creates github local pre-commit hook script for current repository.

If local pre-commit hook found, 'qs dev' does not asks to create the hook.

qs-an's People

Contributors

ivvist 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.