Commit f597befa authored by Natalia Tepluhina's avatar Natalia Tepluhina

Merge branch '333404_update_git_instructions' into 'master'

Update instructions how to initialize git repository

See merge request gitlab-org/gitlab!63985
parents 9f62907d c73781b1
......@@ -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