Skip to content

abugher/git-automation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Usage

g [commit_message]

Use git as thoughtlessly as possible.

This command will pull any changes from upstream, then add, commit, and push any changes from this repo (the current working directory) and any subprojects, recursively, depth first. If a commit message is specified, it will be applied to all commits; otherwise, git will start an editor for a message for each commit.

The branch for the top level directory will be checked out for each subproject and subdirectory.

BUGS

There should probably be a feature to sync the whole hierarchy from a specific branch. This could be used to sync dev to stg for testing, and after testing to sync stg to prd.

New subprojects must be added by hand with git submodule. Ideally g should recognize and add any new subproject, but there may not be a clear basis on which to distinguish a subproject from a directory to be added to the current project.

Adding a submodule may result in problems during the first sync to upstream and/or the first sync from there down to a different instance of the repo. Get some notes.

Collisions will stop the show. That is probably good, but it is annoying.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages