diff --git a/web/src/i18n/strings.en.yaml b/web/src/i18n/strings.en.yaml index 1a2855d8c..bf81b72f9 100644 --- a/web/src/i18n/strings.en.yaml +++ b/web/src/i18n/strings.en.yaml @@ -314,19 +314,19 @@ repoEmptyMarkdownClonePush: | ```sh cd REPO_NAME - git branch -M main + git branch -M DEFAULT_BRANCH echo "# Hello World" >> README.md git add README.md git commit -m "Initial commit" - git push -u origin main + git push -u origin DEFAULT_BRANCH ``` repoEmptyMarkdownExisting: | ### Or you can push an existing repository ```sh git remote add REPO_URL - git branch -M main - git push -u origin main + git branch -M DEFAULT_BRANCH + git push -u origin DEFAULT_BRANCH ``` You might need [to create an API token](CREATE_API_TOKEN_URL) in order to pull from or push into this repository. diff --git a/web/src/pages/Repository/EmptyRepositoryInfo.tsx b/web/src/pages/Repository/EmptyRepositoryInfo.tsx index 1801fde3b..11a7d030d 100644 --- a/web/src/pages/Repository/EmptyRepositoryInfo.tsx +++ b/web/src/pages/Repository/EmptyRepositoryInfo.tsx @@ -129,7 +129,9 @@ export const EmptyRepositoryInfo: React.FC> = padding={{ top: 'xxlarge', bottom: 'xxlarge', left: 'xxlarge', right: 'xxlarge' }} className={css.divContainer}> > = source={getString('repoEmptyMarkdownExisting') .replace(/REPO_URL/g, repoMetadata.git_url || '') .replace(/REPO_NAME/g, repoMetadata.uid || '') - .replace(/CREATE_API_TOKEN_URL/g, currentUserProfileURL || '')} + .replace(/CREATE_API_TOKEN_URL/g, currentUserProfileURL || '') + .replace(/DEFAULT_BRANCH/g, repoMetadata.default_branch || '')} />