release: README.md
This commit is contained in:
112
FEATURE.md
Normal file
112
FEATURE.md
Normal file
@@ -0,0 +1,112 @@
|
|||||||
|
## Feature utility
|
||||||
|
|
||||||
|
### Usage
|
||||||
|
|
||||||
|
This utility is built around some standard branch names: `master`, `develop`, and `integration`.
|
||||||
|
|
||||||
|
Feature branches have specific format: USER-BASE-FEATURE.
|
||||||
|
|
||||||
|
* USER is the username as specificied by the USER environment variable
|
||||||
|
* BASE is the standard branch to base the feature branch on
|
||||||
|
* FEATURE is the name of the feature
|
||||||
|
|
||||||
|
#### Start
|
||||||
|
|
||||||
|
To start a new feature, go to one of the standard branches.
|
||||||
|
|
||||||
|
```
|
||||||
|
git checkout master
|
||||||
|
```
|
||||||
|
|
||||||
|
Use the `start` subcommand with a feature name.
|
||||||
|
|
||||||
|
```
|
||||||
|
feature start my new feature
|
||||||
|
```
|
||||||
|
|
||||||
|
For example, a new branch will be created called `rkiel-master-my-new-feature`
|
||||||
|
|
||||||
|
#### Rebase
|
||||||
|
|
||||||
|
Use the `rebase` subcommand to pull down any changes from the standard branch and then rebase with your feature branch changes.
|
||||||
|
In addition, a backup copy of your feature changes will be pushed out to `origin`.
|
||||||
|
This backup should not be used to collaborate with others. It is just a personal backup and will be deleted and recreated with each `rebase`.
|
||||||
|
|
||||||
|
```
|
||||||
|
feature rebase
|
||||||
|
```
|
||||||
|
|
||||||
|
For example, `rkiel-master-my-new-feature` will be pushed out to `origin`.
|
||||||
|
|
||||||
|
#### Merge
|
||||||
|
|
||||||
|
Use the `merge` subcommand to merge your feature branch changes to the standard branch.
|
||||||
|
|
||||||
|
```
|
||||||
|
feature merge
|
||||||
|
```
|
||||||
|
|
||||||
|
You can also override the default standard branch by specifying another branch.
|
||||||
|
|
||||||
|
```
|
||||||
|
feature merge integration
|
||||||
|
```
|
||||||
|
|
||||||
|
#### Commit
|
||||||
|
|
||||||
|
Use the `commit` subcommand to make it easier to write commit messages.
|
||||||
|
No need to specify the `-m` parameter or wrapping the message in quotes.
|
||||||
|
If you forget and pass in `-m` anyway, it will ignore it.
|
||||||
|
For example,
|
||||||
|
|
||||||
|
```
|
||||||
|
feature commit this is a sample commit message
|
||||||
|
feature commit -m this is a sample commit message
|
||||||
|
```
|
||||||
|
|
||||||
|
generates the command `git commit -m "this is a sample commit message"`.
|
||||||
|
|
||||||
|
The commit message will be prepended with the feature name. For example,
|
||||||
|
|
||||||
|
```
|
||||||
|
my-feature-name: this is a sample commit message
|
||||||
|
```
|
||||||
|
If you need to by-pass any git pre-commit hooks, you can use the `-f` option to force the commit.
|
||||||
|
This will invoke the commit with the `--no-verify` option.
|
||||||
|
It will also add `(no-verify)` to the end of your commit message. For example,
|
||||||
|
|
||||||
|
```
|
||||||
|
feature commit -f this is a sample commit message
|
||||||
|
feature commit -m this is a sample commit message -f
|
||||||
|
```
|
||||||
|
|
||||||
|
generates the command `git commit -m "this is a sample commit message (no-verify)" --no-verify`.
|
||||||
|
|
||||||
|
|
||||||
|
#### End
|
||||||
|
|
||||||
|
Use the `end` subcommand to safely close out the feature.
|
||||||
|
The standard branch will be checkout and the local feature branch will be deleted.
|
||||||
|
This command will fail if you have not merged your changes.
|
||||||
|
If successful and there is a backup copy on `origin`, it will also be removed.
|
||||||
|
|
||||||
|
```
|
||||||
|
feature end
|
||||||
|
```
|
||||||
|
|
||||||
|
#### Trash
|
||||||
|
|
||||||
|
Use the `trash` subcommand to forcibly close out the feature.
|
||||||
|
The standard branch will be checkout and the local feature branch will be forcibly deleted.
|
||||||
|
Make sure that your changes have been merged because they will be lost.
|
||||||
|
If there is a backup copy on `origin`, it will also be removed.
|
||||||
|
You must supply the name of the local feature branch on the command line as
|
||||||
|
a confirmation.
|
||||||
|
|
||||||
|
```
|
||||||
|
feature trash local-branch-confirmation
|
||||||
|
```
|
||||||
|
|
||||||
|
## Xgrep utility
|
||||||
|
|
||||||
|
This utility makes it easier to use git-grep.
|
||||||
118
README.md
118
README.md
@@ -4,8 +4,9 @@ This is a collection of simple command-line scripts, bash aliases, and bash util
|
|||||||
|
|
||||||
The command-line scripts include:
|
The command-line scripts include:
|
||||||
|
|
||||||
* feature - make working with feature branches easier
|
* [feature](FEATURE.md) - make working with feature branches easier
|
||||||
* xgrep - make using `git-grep` easier
|
* [release](RELEASE.md)- make working with release branches and tags easier
|
||||||
|
* [xgrep](XGREP.md)- make using `git-grep` easier
|
||||||
|
|
||||||
The command-line scripts are written in Ruby 2.x using just the standard libraries and do not require any gems to be installed.
|
The command-line scripts are written in Ruby 2.x using just the standard libraries and do not require any gems to be installed.
|
||||||
For OS X users, these should just work out-of-box.
|
For OS X users, these should just work out-of-box.
|
||||||
@@ -61,116 +62,3 @@ If your user id (i.e. `env|grep USER`) is generic, such as `ec2-user` or `centos
|
|||||||
```
|
```
|
||||||
export FEATURE_USER=rkiel
|
export FEATURE_USER=rkiel
|
||||||
```
|
```
|
||||||
|
|
||||||
## Feature utility
|
|
||||||
|
|
||||||
### Usage
|
|
||||||
|
|
||||||
This utility is built around some standard branch names: `master`, `develop`, and `integration`.
|
|
||||||
|
|
||||||
Feature branches have specific format: USER-BASE-FEATURE.
|
|
||||||
|
|
||||||
* USER is the username as specificied by the USER environment variable
|
|
||||||
* BASE is the standard branch to base the feature branch on
|
|
||||||
* FEATURE is the name of the feature
|
|
||||||
|
|
||||||
#### Start
|
|
||||||
|
|
||||||
To start a new feature, go to one of the standard branches.
|
|
||||||
|
|
||||||
```
|
|
||||||
git checkout master
|
|
||||||
```
|
|
||||||
|
|
||||||
Use the `start` subcommand with a feature name.
|
|
||||||
|
|
||||||
```
|
|
||||||
feature start my new feature
|
|
||||||
```
|
|
||||||
|
|
||||||
For example, a new branch will be created called `rkiel-master-my-new-feature`
|
|
||||||
|
|
||||||
#### Rebase
|
|
||||||
|
|
||||||
Use the `rebase` subcommand to pull down any changes from the standard branch and then rebase with your feature branch changes.
|
|
||||||
In addition, a backup copy of your feature changes will be pushed out to `origin`.
|
|
||||||
This backup should not be used to collaborate with others. It is just a personal backup and will be deleted and recreated with each `rebase`.
|
|
||||||
|
|
||||||
```
|
|
||||||
feature rebase
|
|
||||||
```
|
|
||||||
|
|
||||||
For example, `rkiel-master-my-new-feature` will be pushed out to `origin`.
|
|
||||||
|
|
||||||
#### Merge
|
|
||||||
|
|
||||||
Use the `merge` subcommand to merge your feature branch changes to the standard branch.
|
|
||||||
|
|
||||||
```
|
|
||||||
feature merge
|
|
||||||
```
|
|
||||||
|
|
||||||
You can also override the default standard branch by specifying another branch.
|
|
||||||
|
|
||||||
```
|
|
||||||
feature merge integration
|
|
||||||
```
|
|
||||||
|
|
||||||
#### Commit
|
|
||||||
|
|
||||||
Use the `commit` subcommand to make it easier to write commit messages.
|
|
||||||
No need to specify the `-m` parameter or wrapping the message in quotes.
|
|
||||||
If you forget and pass in `-m` anyway, it will ignore it.
|
|
||||||
For example,
|
|
||||||
|
|
||||||
```
|
|
||||||
feature commit this is a sample commit message
|
|
||||||
feature commit -m this is a sample commit message
|
|
||||||
```
|
|
||||||
|
|
||||||
generates the command `git commit -m "this is a sample commit message"`.
|
|
||||||
|
|
||||||
The commit message will be prepended with the feature name. For example,
|
|
||||||
|
|
||||||
```
|
|
||||||
my-feature-name: this is a sample commit message
|
|
||||||
```
|
|
||||||
If you need to by-pass any git pre-commit hooks, you can use the `-f` option to force the commit.
|
|
||||||
This will invoke the commit with the `--no-verify` option.
|
|
||||||
It will also add `(no-verify)` to the end of your commit message. For example,
|
|
||||||
|
|
||||||
```
|
|
||||||
feature commit -f this is a sample commit message
|
|
||||||
feature commit -m this is a sample commit message -f
|
|
||||||
```
|
|
||||||
|
|
||||||
generates the command `git commit -m "this is a sample commit message (no-verify)" --no-verify`.
|
|
||||||
|
|
||||||
|
|
||||||
#### End
|
|
||||||
|
|
||||||
Use the `end` subcommand to safely close out the feature.
|
|
||||||
The standard branch will be checkout and the local feature branch will be deleted.
|
|
||||||
This command will fail if you have not merged your changes.
|
|
||||||
If successful and there is a backup copy on `origin`, it will also be removed.
|
|
||||||
|
|
||||||
```
|
|
||||||
feature end
|
|
||||||
```
|
|
||||||
|
|
||||||
#### Trash
|
|
||||||
|
|
||||||
Use the `trash` subcommand to forcibly close out the feature.
|
|
||||||
The standard branch will be checkout and the local feature branch will be forcibly deleted.
|
|
||||||
Make sure that your changes have been merged because they will be lost.
|
|
||||||
If there is a backup copy on `origin`, it will also be removed.
|
|
||||||
You must supply the name of the local feature branch on the command line as
|
|
||||||
a confirmation.
|
|
||||||
|
|
||||||
```
|
|
||||||
feature trash local-branch-confirmation
|
|
||||||
```
|
|
||||||
|
|
||||||
## Xgrep utility
|
|
||||||
|
|
||||||
This utility makes it easier to use git-grep.
|
|
||||||
|
|||||||
112
RELEASE.md
Normal file
112
RELEASE.md
Normal file
@@ -0,0 +1,112 @@
|
|||||||
|
## Feature utility
|
||||||
|
|
||||||
|
### Usage
|
||||||
|
|
||||||
|
This utility is built around some standard branch names: `master`, `develop`, and `integration`.
|
||||||
|
|
||||||
|
Feature branches have specific format: USER-BASE-FEATURE.
|
||||||
|
|
||||||
|
* USER is the username as specificied by the USER environment variable
|
||||||
|
* BASE is the standard branch to base the feature branch on
|
||||||
|
* FEATURE is the name of the feature
|
||||||
|
|
||||||
|
#### Start
|
||||||
|
|
||||||
|
To start a new feature, go to one of the standard branches.
|
||||||
|
|
||||||
|
```
|
||||||
|
git checkout master
|
||||||
|
```
|
||||||
|
|
||||||
|
Use the `start` subcommand with a feature name.
|
||||||
|
|
||||||
|
```
|
||||||
|
feature start my new feature
|
||||||
|
```
|
||||||
|
|
||||||
|
For example, a new branch will be created called `rkiel-master-my-new-feature`
|
||||||
|
|
||||||
|
#### Rebase
|
||||||
|
|
||||||
|
Use the `rebase` subcommand to pull down any changes from the standard branch and then rebase with your feature branch changes.
|
||||||
|
In addition, a backup copy of your feature changes will be pushed out to `origin`.
|
||||||
|
This backup should not be used to collaborate with others. It is just a personal backup and will be deleted and recreated with each `rebase`.
|
||||||
|
|
||||||
|
```
|
||||||
|
feature rebase
|
||||||
|
```
|
||||||
|
|
||||||
|
For example, `rkiel-master-my-new-feature` will be pushed out to `origin`.
|
||||||
|
|
||||||
|
#### Merge
|
||||||
|
|
||||||
|
Use the `merge` subcommand to merge your feature branch changes to the standard branch.
|
||||||
|
|
||||||
|
```
|
||||||
|
feature merge
|
||||||
|
```
|
||||||
|
|
||||||
|
You can also override the default standard branch by specifying another branch.
|
||||||
|
|
||||||
|
```
|
||||||
|
feature merge integration
|
||||||
|
```
|
||||||
|
|
||||||
|
#### Commit
|
||||||
|
|
||||||
|
Use the `commit` subcommand to make it easier to write commit messages.
|
||||||
|
No need to specify the `-m` parameter or wrapping the message in quotes.
|
||||||
|
If you forget and pass in `-m` anyway, it will ignore it.
|
||||||
|
For example,
|
||||||
|
|
||||||
|
```
|
||||||
|
feature commit this is a sample commit message
|
||||||
|
feature commit -m this is a sample commit message
|
||||||
|
```
|
||||||
|
|
||||||
|
generates the command `git commit -m "this is a sample commit message"`.
|
||||||
|
|
||||||
|
The commit message will be prepended with the feature name. For example,
|
||||||
|
|
||||||
|
```
|
||||||
|
my-feature-name: this is a sample commit message
|
||||||
|
```
|
||||||
|
If you need to by-pass any git pre-commit hooks, you can use the `-f` option to force the commit.
|
||||||
|
This will invoke the commit with the `--no-verify` option.
|
||||||
|
It will also add `(no-verify)` to the end of your commit message. For example,
|
||||||
|
|
||||||
|
```
|
||||||
|
feature commit -f this is a sample commit message
|
||||||
|
feature commit -m this is a sample commit message -f
|
||||||
|
```
|
||||||
|
|
||||||
|
generates the command `git commit -m "this is a sample commit message (no-verify)" --no-verify`.
|
||||||
|
|
||||||
|
|
||||||
|
#### End
|
||||||
|
|
||||||
|
Use the `end` subcommand to safely close out the feature.
|
||||||
|
The standard branch will be checkout and the local feature branch will be deleted.
|
||||||
|
This command will fail if you have not merged your changes.
|
||||||
|
If successful and there is a backup copy on `origin`, it will also be removed.
|
||||||
|
|
||||||
|
```
|
||||||
|
feature end
|
||||||
|
```
|
||||||
|
|
||||||
|
#### Trash
|
||||||
|
|
||||||
|
Use the `trash` subcommand to forcibly close out the feature.
|
||||||
|
The standard branch will be checkout and the local feature branch will be forcibly deleted.
|
||||||
|
Make sure that your changes have been merged because they will be lost.
|
||||||
|
If there is a backup copy on `origin`, it will also be removed.
|
||||||
|
You must supply the name of the local feature branch on the command line as
|
||||||
|
a confirmation.
|
||||||
|
|
||||||
|
```
|
||||||
|
feature trash local-branch-confirmation
|
||||||
|
```
|
||||||
|
|
||||||
|
## Xgrep utility
|
||||||
|
|
||||||
|
This utility makes it easier to use git-grep.
|
||||||
Reference in New Issue
Block a user