git-redmine/README

141 lines
2.7 KiB
Plaintext
Raw Normal View History

2017-12-20 17:30:13 +01:00
git-redmine
===========
Redmine integration to git.
Configuration
-------------
Add the following snippet to your .config/git/config file.::
[redmine]
url = https://redmine.mycompany.org/
key = apikey
OR
username = username
password = password
Usage
-----
project
.......
Show the current default project.
project set
...........
Set the current default project for this repository, useful for creating new
issues.::
git redmine project set myproject-id
2019-03-06 16:01:12 +01:00
rebase
......
Checkout master, pull origin/master on master then rebase current feature
branch on master, if it fails it reset the branch. Checkout the original branch
after all this.
git redmine rebase
2017-12-20 17:30:13 +01:00
issue new
.........
Given a default project, create a new issue, an editor is launched to define
subject and description of the issue.::
git redmine issue new
2022-01-29 09:02:20 +01:00
issue comment
-------------
Comment on current issue or a targeted issue (--issue).
git redmine issue comment [--issue 9999]
2017-12-20 17:30:13 +01:00
issue take
..........
Handle the given issue by cloning an existing remote branch for the issue,
creating or switching to a branch named `wip/<issue-number>-<issue-subject>`
forking from `master`.::
2017-12-20 17:30:13 +01:00
git redmine issue take 123
2018-02-07 22:44:10 +01:00
It will propose applying patches attached to the issue.
issue show
..........
Show information about the current issue.::
git redmine issue show
Show informations about issue 9999.::
git redmine issue show --issue 9999
2017-12-20 17:30:13 +01:00
issue submit
............
2019-03-06 16:01:12 +01:00
It first does a `git redmine rebase` then use `git format-patch` to create the
patch serie from `master` and attach it to the current issue. An editor is
launched to add a commment.::
2017-12-20 17:30:13 +01:00
git redmine issue submit
2018-02-07 22:44:10 +01:00
To submit only the last commit::
git redmine issue submit 1
To submit the last commit to issue 9999::
git redmine issue submit --issue 9999 1
issue apply
...........
Apply patches attached to the current issue.::
git redmine issue apply
Apply patched atteched to issue 9999.::
git redmine issue apply --issue 9999
2022-01-29 09:01:23 +01:00
issue validate
--------------
Validate the current issue or a target issue (--issue).
git redmine issue validate [--issue 9999]
link
----
git redmine link 9999
Link current branch issue to issue 9999.
merge-and-push
..............
Merge current feature branch in a target branch (default is master), push
target branch to origin, delete feature branch locally and on origin; if before
that those operations pass: pull-rebase the target branch, rebase feature
branch on target.
git rebase merge-and-push
2019-03-06 16:01:12 +01:00
2022-01-29 08:09:21 +01:00
clean
-----
Remove local and remote branch for issues closed more than 21 days ago. Use
--no-local to only clean local branches.
git redmine clean [--local/--no-local]