Skip to content

Commit 644711e

Browse files
docs: document the setup scripts and how to use the git scripts
1 parent 089e44c commit 644711e

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed

README.md

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,55 @@ Inside the `scripts` folder you will find one-off scripts to help with tasks.
4747

4848
* `db_migrate.sh` - Helps migrate databases between versions of mysql.
4949

50+
## Git Scripts
51+
Custom scripts that extend Git functionality, to streamline the process of tracking tickets and managing releases
52+
53+
### Installation
54+
Either copy the scripts into your `PATH` or run the following command to add the scripts to your `PATH`
55+
```shell
56+
scripts/link-git-commands.sh
57+
```
58+
* This will link git scripts to a `bin` folder in your home directory. If you do not have a `bin` folder, it will create one for you.
59+
60+
`git-tickets`
61+
---------
62+
This command is used to get the tickets since staging was was last updated. By default it does not update the branches
63+
64+
```shell
65+
git tickets [options] [arguments]
66+
```
67+
68+
| Options | Description | Default | Any of |
69+
|----------|-----------------------------------------------------------------|---------|--------|
70+
| --update | Update the specified branches from the remote before comparison | | |
71+
72+
| Arguments | Description | Default | Any of |
73+
|-----------|--------------------------------------|---------|------------|
74+
| branch 1 | the target branch that is up to date | master | any branch |
75+
| branch 2 | the branch that is behind | staging | any branch |
76+
77+
### Example
78+
```shell
79+
git tickets --update master staging
80+
```
81+
82+
`git-make-release`
83+
---------
84+
This command automates the process of preparing a new software release. It creates a release branch from the current branch, increments the version number, updates the `CHANGELOG.md`
85+
86+
```shell
87+
git make-release [options]
88+
```
89+
90+
| Options | Description | Default |
91+
|----------|-----------------------------------------------------------|---------|
92+
| --dry | Perform a dry run without any changes to branches or tags | N/A |
93+
94+
### Example
95+
```shell
96+
git make-release --dry
97+
```
98+
5099
## Docs
51100
* [Setting up Nginx-Proxy](docs/nginx-proxy/README.md)
52101
* [Setting up PHP Testing in PhpStorm](docs/phpstorm-docker/README.md)

0 commit comments

Comments
 (0)