# giprote.commandline
**Repository Path**: haroldduan/giprote.commandline
## Basic Information
- **Project Name**: giprote.commandline
- **Description**: giprote,it is AVATech gitea project template kits.
- **Primary Language**: Shell
- **License**: Apache-2.0
- **Default Branch**: 1.3.8
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2021-08-12
- **Last Updated**: 2023-11-14
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
# giprote.commandline   
- [Overview](#Overview)
- [Dependency](#Dependency)
- [Install](#Install)
- [Linux|MacOS](#Linux|MacOS)
- [Windows](#Windows)
- [Usage](#Usage)
- [Upgrade](#Upgrade)
- [Contributors](#Contributors)
- [Thanks](#Thanks)
## Overview
giprote,it is AVATech gitea project template kits.
```
haroldduan@Think-Harold:~$ gpt -v
_ _
__ _ |_| _ __ _ ___ _ _ __| |__ _ __
/ _ \ _ | _ \ | `___| / _ \ |__ __| / _ \
| (_| | | | | |_) ) | | | | | | | | | |_|_/
\__ | | | | |_ / | | | |_| | | |_ | \__ _
|___/ |_| |_| |_| \_ _/ \___| \_ __/
0.1.1
* 1.0.0
haroldduan@Think-Harold:~$ gpt -h
Usage:
gpt -h|--help Show help message
gpt -v|--version Print out the installed version of gpt
gpt init Init repo
--commit Init repo commit
--local-branch Init repo local branch
gpt gen Generate source
--prof Generate source project folders
--readme Generate source README.md
--ignore Generate source .gitignore
gpt -u|--upgrade Upgrade to the latest version.
Example:
gpt init --commit Init current repo commit
gpt init --local-branch Init current repo local branch
gpt gen --prof Generate source project folders
gpt gen --readme Generate source README.md
Note:
If you have some problems,you can pull iusses to this repo:
https://github.com/EDITeam/giprote.commandline.git
```
## Dependency
- **[git](https://git-scm.com/)**
## Install
### Linux|MacOS
**_Install by bash_**
```
$ wget -qO- https://gitee.com/haroldduan/giprote.commandline/raw/1.3.7/install.sh | bash
```
_or_
```
$ curl -o- https://gitee.com/haroldduan/giprote.commandline/raw/1.3.7/install.sh | bash
```
### Windows
**_Install by PowerShell_**
```
PS C:\Users\Administrator> Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://gitee.com/haroldduan/giprote.commandline/raw/1.3.7/install.ps1'))
```
**_Install by Git Bash_** *Recommended*
```
$ curl -o- https://gitee.com/haroldduan/giprote.commandline/raw/1.3.7/install.sh | bash
```
*ps: If exists error for example,*
```
$ gpt --version
bash: gpt: command not found
```
*solution:*
```
$ source ~/.bashrc
```
## Usage
- **help**
```
$ gpt -h
```
_or_
```
$ gpt --help
```
- **version**
```
$ gpt -v
```
_or_
```
$ gpt --version
```
- **init commit**
```
$ gpt init --commit
```
- **init local branches**
```
$ gpt init --local-branch
```
- **generate project folders**
```
$ gpt gen --prof
```
- **generate repo readme**
```
$ gpt gen --readme
```
## Upgrade
```
$ gpt -u
```
_or_
```
$ gpt --upgrade
```
## ErrorProcess
+ *Error*
```
bash: gpt: command not found
```
+ *Solution*
```
$ grep -q "$HOME/.giprote/giprote.commandline" $HOME/.bashrc || cat>>$HOME/.bashrc< Go **_$HOME_** directory,open **_.bashrc_** file add these codes:
```
export PATH=$PATH:$HOME/.giprote/giprote.commandline
export giprote_dir=$HOME/.giprote/giprote.commandline
```
> Open Git-Bash or Bash terminal,execute these command:
```
$ source .bashrc
```
+ *Error*
```
$ warning: in the working copy of 'README.md', LF will be replaced by CRLF the next time Git touches it
bash: warning:: command not found
```
+ *Solution*
```
$ git config --global core.autocrlf true
```
## **_Contributors_**
## **_Thanks_**