Commit ed9a6bf9 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Merge pull request #7758 from bbodenmiller/patch-1

cleanup empty repo page
parents c31c8c55 dcc51b0d
...@@ -2,27 +2,27 @@ ...@@ -2,27 +2,27 @@
%div.git-empty %div.git-empty
%fieldset %fieldset
%legend Git global setup: %legend Git global setup
%pre.dark %pre.dark
:preserve :preserve
git config --global user.name "#{git_user_name}" git config --global user.name "#{git_user_name}"
git config --global user.email "#{git_user_email}" git config --global user.email "#{git_user_email}"
%fieldset %fieldset
%legend Create Repository %legend Create a new repository
%pre.dark %pre.dark
:preserve :preserve
mkdir #{@project.path} mkdir #{@project.path}
cd #{@project.path} cd #{@project.path}
git init git init
touch README touch README.md
git add README git add README.md
git commit -m "first commit" git commit -m "first commit"
git remote add origin #{ content_tag(:span, default_url_to_repo, class: 'clone')} git remote add origin #{ content_tag(:span, default_url_to_repo, class: 'clone')}
git push -u origin master git push -u origin master
%fieldset %fieldset
%legend Existing Git Repo? %legend Push an existing Git repository
%pre.dark %pre.dark
:preserve :preserve
cd existing_git_repo cd existing_git_repo
......
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