blob: d7eb43e2cfb9511b570fa38985a3cb00dd966c19 [file] [log] [blame]
Joey Armstrong56334fc2023-01-15 22:53:19 -05001.. _my-reference-label:
2.. _gerrit-user-account:
3
4Getting Started
5###############
6
Serkant Uluderya6db98942026-03-26 09:53:57 -07007- Register with LF BB
Joey Armstrong56334fc2023-01-15 22:53:19 -05008- gerrit user account
9- github user account
10
Serkant Uluderya6db98942026-03-26 09:53:57 -070011Register with LF BB
Joey Armstrong56334fc2023-01-15 22:53:19 -050012=================
13
Serkant Uluderya6db98942026-03-26 09:53:57 -070014Begin by registering with LF BB, this will create a
Joey Armstrong56334fc2023-01-15 22:53:19 -050015user account for you to access resources: gerrit, jenkins, wiki, etc.
16
Serkant Uluderya6db98942026-03-26 09:53:57 -070017- https://lfbroadband.org/join/
Joey Armstrong56334fc2023-01-15 22:53:19 -050018
19
20Gerrit user account
21===================
22
Eric Ball74a2e762025-08-27 12:34:53 -070023Next navigate to gerrit.lfbroadband.org, login and configure your user account
Joey Armstrong56334fc2023-01-15 22:53:19 -050024^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
25
Eric Ball74a2e762025-08-27 12:34:53 -070026- `Gerrit Login <https://gerrit.lfbroadband.org/login>`_
Joey Armstrong56334fc2023-01-15 22:53:19 -050027
Eric Ball74a2e762025-08-27 12:34:53 -070028- `User Settings <https://gerrit.lfbroadband.org/settings/>`_
Joey Armstrong56334fc2023-01-15 22:53:19 -050029 - Verify full name and display name fields are populated.
30 - Verify your email address is correct.
31
32- Generate and deploy an ssh key to interact with the repository:
Eric Ball74a2e762025-08-27 12:34:53 -070033 - `Public SSH key <https://gerrit.lfbroadband.org/settings>`_ (#SSHKeys)
Joey Armstrong56334fc2023-01-15 22:53:19 -050034
35- Verify your ssh access
36
37.. sourcecode:: shell
38
39 # Generate a new ssh key
40 $ cd .ssh
Serkant Uluderya6db98942026-03-26 09:53:57 -070041 $ ssh-keygen -t ed25519 -f id_gerrit -C 'tux@yourdomain.org'
Joey Armstrong56334fc2023-01-15 22:53:19 -050042
43 # Connect passing -T, -p(ort), -i(dentity)
Serkant Uluderya6db98942026-03-26 09:53:57 -070044 $ ssh -T -p 29418 -i ~/.ssh/id_gerrit 'tux@yourdomain.org'
Joey Armstrong56334fc2023-01-15 22:53:19 -050045
46 $ ssh-add ~/.ssh/id_gerrit
Serkant Uluderya6db98942026-03-26 09:53:57 -070047 $ ssh -T -p 29418 'tux@yourdomain.org'
Joey Armstrong56334fc2023-01-15 22:53:19 -050048
49
50
51Github user account
52===================
53
54Enable two-factor authentication
55^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
56- https://github.com/settings/security
57
58Generate and upload a public ssh key to interact with the repository:
59"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
60- https://github.com/settings/keys
61
62
63
64Git config settings
65===================
66
67.. sourcecode:: shell
68
69 ## Config required by git:
70 $ git config --global user.name 'Tux Penguin'
Serkant Uluderya6db98942026-03-26 09:53:57 -070071 $ git config --global user.email 'tux@yourdomain.org'
Joey Armstrong56334fc2023-01-15 22:53:19 -050072
73 ## Config required by gerrit:
Serkant Uluderya6db98942026-03-26 09:53:57 -070074 $ git config --global gitreview.username 'tux@yourdomain.org'
Joey Armstrong56334fc2023-01-15 22:53:19 -050075
76 ## Convenience:
77 $ git config --global alias.br branch
78 $ git config --global alias.ci commit
79 $ git config --global alias.co checkout
80 $ git config --global alias.st status
81
82 ## Optional configs:
83 $ git config --global color.ui auto
84 $ git config --global pater.diff false