Commit c73781b1 authored by Vasilii Iakliushin's avatar Vasilii Iakliushin

Update instructions how to initialize/clone git repository

Contributes to https://gitlab.com/gitlab-org/gitlab/-/issues/333404

Changelog: changed
parent 9b5aab7c
......@@ -44,6 +44,7 @@
:preserve
git clone #{ content_tag(:span, default_url_to_repo, class: 'js-clone')}
cd #{h @project.path}
git switch -c #{default_branch_name}
touch README.md
git add README.md
git commit -m "add README"
......@@ -56,7 +57,7 @@
%pre.bg-light
:preserve
cd existing_folder
git init
git init --initial-branch=#{default_branch_name}
git remote add origin #{ content_tag(:span, default_url_to_repo, class: 'js-clone')}
git add .
git commit -m "Initial commit"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment