Giter Club home page Giter Club logo

hju's Introduction

hju

Taking git to the next level!

hju is a tool to manage a set of repositories in a parent repository. The biggest difference with git submodules is that submodules points to specific commits in the child repositories. The managed repositories are in a file named hju.json and the folders are ignored using .gitignore when using hju to add repositories.

Installation

Linux, Debian based

echo "deb [trusted=yes] https://apt.fury.io/bztk/ /" | sudo tee /etc/apt/sources.list.d/bztk.list > /dev/null
sudo apt update
sudo apt install hju

Linux, Red Hat based

Add the following YUM Repository: https://yum.fury.io/bztk/ sudo yum install hju

Other

Download the suitable release and unpack it.

Commands

add

Creates or updates hju.json and .gitignore You do this in an existing repository:

Example:

hju add [email protected]:vandmo/dependency-lock-maven-plugin.git
hju add [email protected]:vandmo/google-java-format.git
git commit -a -m"Initial commit"
git push

This will have created a file named hju.json which contains a list of the added repositories. .gitignore will also have been updated to exclude the folders dependency-lock-maven-plugin and google-java-format.

clean

Cleans all managed repositories.

clone

Clones all child repositories.

divergence

Prints how each managed repository diverges from a specic commit. The commit can be a branch name or anything supported by git rev-list.

fast-forward

Runs git pull --ff-only in all child repositories.

fetch

Runs git fetch in all child repositories.

fix

Normalizes hju.json and makes sure all entries are in .gitignore

folders

Lists all managed folders. Can be used as pipe input.

remove

Removes a repository based on its folder name.

repositories

Lists all managed repositories. Can be used as pipe input.

reset

Resets to a commit in all managed repositories.

restore

Restores all managed repositories.

status

Prints a summary of the status of all child repositories.

switch [-c|--create]

Switches to a branch in all managed repositories. Optionally creates it if missing.

hju's People

Contributors

vandmo avatar mikael-vandmo-wcar avatar

Stargazers

Taylan Sabırcan avatar Oğuzhan Yılmaz avatar

Watchers

 avatar

Forkers

qsdefsdj

hju's Issues

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.