Skip to content

Commit

Permalink
Suggest PAT as credential for cloning Altinn repos (#1480)
Browse files Browse the repository at this point in the history
  • Loading branch information
martinothamar authored Mar 20, 2024
1 parent 11c68ce commit 902e624
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions content/app/getting-started/local-dev/_index.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ During application development, you will need to work both in Altinn Studio and
```cmd
$ git clone https://altinn.studio/repos/<org>/<app-name>.git
```
- If you have logged into Altinn Studio without creating a password (e.g. using Github login),
you can [create a personal access token in Gitea](https://altinn.studio/repos/user/settings/applications)
that can be used as a password when cloning:
```cmd
$ git clone https://<username>:<access-token>@altinn.studio/repos/<org>/<app-name>.git
```
- You should see an output in the terminal similar to this:
```cmd
Cloning into 'app-name'...
Expand Down
6 changes: 6 additions & 0 deletions content/app/getting-started/local-dev/_index.nb.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@ Her er en oversikt over hvordan du kommer i gang med lokal utvikling.
```cmd
$ git clone https://altinn.studio/repos/<org>/<app-name>.git
```
- Hvis du har logget inn i Altinn Studio uten å lage passord (f. eks. Github login),
så kan du [lage et personlig access token i Gitea](https://altinn.studio/repos/user/settings/applications)
som kan brukes som passord ved kloning:
```cmd
$ git clone https://<brukernavn>:<access-token>@altinn.studio/repos/<org>/<app-name>.git
```
- I terminalen skal du se en output som likner dette
```cmd
Cloning into 'app-name'...
Expand Down

0 comments on commit 902e624

Please sign in to comment.