Command line tool to operate local and remote git repositories
Shell script tool for usual development task with operation to your local and remote repositories.
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.
- 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
Now you can use shgit command from the command line
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 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]