Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
contribute:dev:git:userrepos [2017/06/28 22:39] – [Push to a private repository] skunnyk | contribute:dev:git:userrepos [2019/09/08 09:45] – [Repository maintenance] kevinbowen | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== | + | ====== |
- | Contributors now have the possibility | + | Contributors now have the ability |
users/ | users/ | ||
- | This is useful when you have no permission to commit upstream directly or you want to work on some code privately without bothering other. Compared to upstream repositories, | + | This is useful when you do not have permission to commit upstream directly or you want to work on some code privately without bothering other developers. Compared to upstream repositories, |
* You can create any branch name and delete them | * You can create any branch name and delete them | ||
- | * Possible | + | * It is possible |
* You can decide which other users have write access to your repository as well, see below | * You can decide which other users have write access to your repository as well, see below | ||
- | * No notification emails are send to the xfce4-commits mailing list | + | * No notification emails are sent to the xfce4-commits mailing list |
- | So also for developers with up-stream access rights, it is always advised to work on large patches in a user repository first. | + | As with developers with up-stream access rights, it is always advised to work on large patches in a user repository first. |
< | < | ||
Line 19: | Line 19: | ||
===== Push to a private repository ===== | ===== Push to a private repository ===== | ||
- | Most often you will continue from the upstream repository and then push your changes on top of that to your user repo branch. If so follow the steps below: | + | Most often you will continue from the upstream repository and then push your changes on top of that to your user repo branch. If so, follow the steps below: |
<file bash> | <file bash> | ||
Line 39: | Line 39: | ||
</ | </ | ||
- | Then wait for a few minutes | + | Then, wait for a few minutes |
===== Repository maintenance ===== | ===== Repository maintenance ===== | ||
- | There are a couple of commands for gitolite | + | There are a couple of commands for [[https:// |
+ | |||
+ | |||
+ | ==== Fast forward ==== | ||
+ | |||
+ | Note that you can't use non fast-forward pushes. However in user branches, you can remove, then repush your work. | ||
+ | |||
+ | <file bash> | ||
+ | git push user :branch ; git push user branch | ||
+ | </ | ||
==== Give other users write access ==== | ==== Give other users write access ==== | ||
- | By default you are the only user with write access to the repository. To allow others to push changes as well (they can only push forward commits, and have no rights to create and delete), use this command: | + | By default, you are the only user with write access to the repository. To allow others to push changes as well (they can only push forward commits, and have no rights to create and delete), use the following |
<file bash>ssh git@git.xfce.org perms users/ | <file bash>ssh git@git.xfce.org perms users/ | ||
- | The same command as above but with the minus-sign | + | To revoke permissions, |
+ | <file bash>ssh git@git.xfce.org perms users/ | ||
For more options, like listing permissions, | For more options, like listing permissions, | ||
Line 57: | Line 67: | ||
<file bash>ssh git@git.xfce.org perms -h</ | <file bash>ssh git@git.xfce.org perms -h</ | ||
- | ==== Delete | + | ==== Deleting |
- | If you finished work in your user repository and it' | + | If you finished work in your user repository and it has been merged |
<file bash>ssh git@git.xfce.org D -h</ | <file bash>ssh git@git.xfce.org D -h</ | ||
- | As an example you can delete the xfwm4 repository we created earlier as follows: | + | For example, you can delete the xfwm4 repository we created earlier as follows: |
<file bash># unlock the repository to allow deletion | <file bash># unlock the repository to allow deletion |