Skip to content

Command line tool to operate local and remote git repositories

License

Notifications You must be signed in to change notification settings

simukappu/shgit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

shgit

Command line tool to operate local and remote git repositories

Description

Shell script tool for usual development task with operation to your local and remote repositories.

Design

This tool is designed for following development style.

  • Remote repository (default name is 'origin') is folked from original repository (default name is 'upstream').
  • Local repository is cloned from remote repository.
  • Your new commit in the local repository will be pushed to working branch in the remote repository.
  • Then you will make pull request from your new remote working branch to base working branch (default name is 'development') in original repository.

Requirement

  1. Clone this repository in any you like.

$ cd
$ git clone https://github.com/simukappu/shgit.git


2. Add "\<shgit-root-path\>/shgit/bin" to PATH environment variable.  
Writing to profile (.bashrc, .bash_profile and so on) may also good for you. 
    ```sh
export PATH=<shgit-root-path>/shgit/bin:$PATH

Usage

Now you can use shgit command from the command line

Update local and remote self repository as upstream repository

Update your master and base working branch in the local and remote repository as upstream original repository

$ shgit update-self-repositoty [-b base_working_branch] [-r remote_repository] [-u upstream_repository]

Also works

$ shgit udtrep [-b base_working_branch] [-r remote_repository] [-u upstream_repository]
$ shgit u [-b base_working_branch] [-r remote_repository] [-u upstream_repository]

Delete remote branches with confirmation

Delete your unnecessary remote branches with confirmation

$ shgit delete-remote-branches [-fpm] [-b base_working_branch] [-r remote_repository]

Also works

$ shgit delrb [-fpm] [-b base_working_branch] [-r remote_repository]
$ shgit d [-fpm] [-b base_working_branch] [-r remote_repository]

License

MIT License

About

Command line tool to operate local and remote git repositories

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages