From 902e624bcf43d692218958de7ea547eb5b06665c Mon Sep 17 00:00:00 2001 From: Martin Othamar Date: Wed, 20 Mar 2024 10:58:42 +0100 Subject: [PATCH] Suggest PAT as credential for cloning Altinn repos (#1480) --- content/app/getting-started/local-dev/_index.en.md | 6 ++++++ content/app/getting-started/local-dev/_index.nb.md | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/content/app/getting-started/local-dev/_index.en.md b/content/app/getting-started/local-dev/_index.en.md index f155b81bad9..4b755e31b03 100644 --- a/content/app/getting-started/local-dev/_index.en.md +++ b/content/app/getting-started/local-dev/_index.en.md @@ -22,6 +22,12 @@ During application development, you will need to work both in Altinn Studio and ```cmd $ git clone https://altinn.studio/repos//.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://:@altinn.studio/repos//.git + ``` - You should see an output in the terminal similar to this: ```cmd Cloning into 'app-name'... diff --git a/content/app/getting-started/local-dev/_index.nb.md b/content/app/getting-started/local-dev/_index.nb.md index 28a78a9b0a9..884d3538898 100644 --- a/content/app/getting-started/local-dev/_index.nb.md +++ b/content/app/getting-started/local-dev/_index.nb.md @@ -24,6 +24,12 @@ Her er en oversikt over hvordan du kommer i gang med lokal utvikling. ```cmd $ git clone https://altinn.studio/repos//.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://:@altinn.studio/repos//.git + ``` - I terminalen skal du se en output som likner dette ```cmd Cloning into 'app-name'...