Create an account and a repository, generate a token and push your first commit.

1. Create an account#

Open your Codeny instance, for example codeny.org, and choose Register. A username, an email address and a password with at least 10 characters are enough.

Administrators can close self-registration. Then an admin creates your account, or you sign in via LDAP or single sign-on if the instance offers it.

2. Create a repository#

  1. At the top use the plus menu and choose New repository.
  2. Pick a name (letters, digits, -, _, .) and optionally a description.
  3. Choose the visibility: Public, Internal (all signed-in users) or Private.
  4. Optionally Initialize with README so the repository has a first commit right away.

3. Create an access token#

For Git over HTTPS you need your password or – better, and mandatory with two-factor authentication – an access token.

  1. Settings → Access tokens.
  2. Enter a name, permission Read & write, optionally an expiry date.
  3. Create token and copy the value right away. It is shown only once.

4. Clone and push#

git clone https://codeny.org/<your-name>/<repository>.git
cd <repository>
echo "# Hello Codeny" > README.md
git add README.md
git commit -m "First commit"
git push

When Git asks for credentials, enter your username and the token as password.

So Git does not ask for the token every time: git config --global credential.helper store (stores it in plain text in ~/.git-credentials) or your system keychain (osxkeychain, manager on Windows, libsecret on Linux).

What next?#

Last updated