# git_prj
**Repository Path**: Memory_Factory/git_prj
## Basic Information
- **Project Name**: git_prj
- **Description**: contain some shell scripts
- **Primary Language**: Unknown
- **License**: Not specified
- **Default Branch**: main
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2025-02-27
- **Last Updated**: 2025-11-01
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
# git_prj
Contain some shell scripts
## List:
- [try-pull.sh](#try-pull)
- [try-push.sh](#try-push)
- [easy-log.sh](#easy-log)
- [all-push.sh](#all-push)
- [start.sh](#start)
- [finish.sh](#finish)
## Usage:
### `./try-pull.sh [option]`
*Attempt to pull all modifications online every 5 seconds until succeed*
> `./try-pull.sh`
>
> *Attempt to pull files from origin(github default)*
>
> `./try-pull.sh all`
>
> *Attempt to pull files from github and then gitee*
>
> `./try-pull.sh github`
>
> *Attempt to pull files from github only*
>
> `./try-pull.sh gitee`
>
> *Attempt to pull files from gitee only*
### `./try-push.sh [option]`
*Attempt to push all modifications online every 5 seconds until succeed*
> `./try-push.sh`
>
> *Attempt to push files to origin(github default)*
>
> `./try-push.sh all`
>
> *Attempt to push files to github and then gitee*
>
> `./try-push.sh github`
>
> *Attempt to push files to github only*
>
> `./try-push.sh gitee`
>
> *Attempt to push files to gitee only*
### `./easy-log.sh [option]`
*To log commit history in a simple and pretty way*
> `./easy-log.sh`
>
> *--pretty=oneline --abbrev-commit --graph*
>
> `./easy-log.sh oneline`
>
> *--pretty=oneline --abbrev-commit --graph*
>
> `./easy-log.sh pretty`
>
> *--color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit*
### `./all-push.sh`
*Attemp to push files to github and gitee as same as ./try-push.sh all*
### `./start.sh [option]`
*Pull new modification from github and gitee, and switch to branch 'dev' before working*
> `./start.sh`
>
> *Create working enviroment, pulling new files from github and gitee*
>
> `./start.sh github`
>
> *Create working enviroment, pulling new files from github only*
>
> `./start.sh gitee`
>
> *Create working enviroment, pulling new files from gitee only*
### `./finish.sh [option]`
*Merge modifications to branch 'main', and then push them to github and gitee*
> `./finish.sh`
>
> *Have all things done, and push modifications to github and gitee*
>
> `./finish.sh github`
>
> *Have all things done, and push modifications to github only*
>
> `./finish.sh gitee`
>
> *Have all things done, and push modifications to gitee only*