Skip to content

manage sub git repository with git-submerge and a configure file

Notifications You must be signed in to change notification settings

baishancloud/git-subrepo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 

Repository files navigation

git subrepo

Merge sub git repo into sub-directory in a parent git dir with git-submerge. git-subrepo reads config from ".gitsubrepo" resides in the root of parent git working dir.

Usage

Configure file ".gitsubrepo" syntax:

    # set base of remote url to "https://github.com/"
    [ remote: https://github.com/ ]


    # set base of local dir to "plugin"
    [ base: plugin ]


    # <local dir>   <remote uri>            <ref to fetch>    [<dir>]
    gutter          airblade/vim-gitgutter  master            src


    # if <remote uri> ends with "/", <local dir> will be added after "/"
    ansible-vim     DavidWittman/           master


    # change base to "root"
    [ base: ]


    # use a specific commit 1a2b3c4
    ultisnips       SirVer/                 1a2b3c4


    # add a sub-directory
    ultisnips       SirVer/                 1a2b3c4           src

With above config, "git subrepo" will:

About

manage sub git repository with git-submerge and a configure file

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages