summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/views/projects/empty.html.haml11
1 files changed, 5 insertions, 6 deletions
diff --git a/app/views/projects/empty.html.haml b/app/views/projects/empty.html.haml
index 49806ceaa96..4f8104e0792 100644
--- a/app/views/projects/empty.html.haml
+++ b/app/views/projects/empty.html.haml
@@ -27,20 +27,19 @@
%legend Create a new repository
%pre.dark
:preserve
- mkdir #{@project.path}
+ git clone #{ content_tag(:span, default_url_to_repo, class: 'clone')}
cd #{@project.path}
- git init
touch README.md
git add README.md
- git commit -m "first commit"
- git remote add origin #{ content_tag(:span, default_url_to_repo, class: 'clone')}
+ git commit -m "add README"
git push -u origin master
%fieldset
- %legend Push an existing Git repository
+ %legend Existing folder or Git repository
%pre.dark
:preserve
- cd existing_git_repo
+ cd existing_folder
+ git init
git remote add origin #{ content_tag(:span, default_url_to_repo, class: 'clone')}
git push -u origin master