File: howto-pull-request.md

package info (click to toggle)
kbd 2.9.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 15,980 kB
  • sloc: ansic: 14,562; javascript: 3,038; sh: 1,154; pascal: 643; makefile: 614; lex: 542; yacc: 338; perl: 126; python: 96; sed: 6
file content (71 lines) | stat: -rw-r--r-- 1,838 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
Introduction
============

These instructions are wrote to contributors who tend to send lots of changes.
The basics from [howto-contribute](howto-contribute.md) file are assumed to be
read and understood by the time this file becomes useful.


Setup
=====

1. Find a git server that can be reached from anywhere in internet anonymously.
   Github is for example a popular choice.

2. Create your own kbd contributor repository, and push a upstream clone
   to there.

3. In these instructions the upstream remote repository is called 'origin' and
   the 'yourgit' is the contributor repo.

```
cd ~/projects
git clone git://git.kernel.org/pub/scm/linux/kernel/git/legion/kbd.git
cd kbd
git remote add yourgit git@github.com:yourlogin/kbd.git
git push yourgit
```


Stay up to date
===============

1. Ensure you have the latest from all remote repositories.

2. Merge upstream 'master' branch if needed to your local 'master'.

3. Rebase your working contribution branches.

4. Push the changes to 'yourgit'.

```
git fetch --all
git log --graph --decorate --pretty=oneline --abbrev-commit --all
```

5. If you notice upstream has changed while you were busy with your changes
   rebase on top of the master, but before that:

6. Push a backup of your branch 'textual' to 'yourgit', then

```
git checkout master
git merge origin/master
git checkout textual
git rebase master
```

If rebase reports conflicts fix the conflicts.  In case the rebase conflict is
difficult to fix rebase --abort is good option, or recover from 'yourgit',
either way there is some serious re-work ahead with the change set.

7. Assuming rebase went fine push the latest to 'yourgit'.

```
git push yourgit master:master
git push yourgit --force textual:textual
```

The contributor branch tends to need --force every now and then, don't be afraid
using it.