| ... | @@ -15,6 +15,7 @@ |
... | @@ -15,6 +15,7 @@ |
|
|
%h3 Git global setup:
|
|
%h3 Git global setup:
|
|
|
- setup_str = ["git config --global user.name \"#{current_user.name}\"",
|
|
- setup_str = ["git config --global user.name \"#{current_user.name}\"",
|
|
|
"git config --global user.email \"#{current_user.email}\""].join("\n")
|
|
"git config --global user.email \"#{current_user.email}\""].join("\n")
|
|
|
|
= preserve do
|
|
|
= raw bash_lexer.highlight(setup_str, :lexer => 'bash', :options => {:encoding => 'utf-8'})
|
|
= raw bash_lexer.highlight(setup_str, :lexer => 'bash', :options => {:encoding => 'utf-8'})
|
|
|
|
|
|
|
|
%br
|
|
%br
|
| ... | @@ -29,6 +30,7 @@ |
... | @@ -29,6 +30,7 @@ |
|
|
"git remote add origin #{@project.url_to_repo}",
|
|
"git remote add origin #{@project.url_to_repo}",
|
|
|
"git push -u origin master"].join("\n")
|
|
"git push -u origin master"].join("\n")
|
|
|
|
|
|
|
|
|
= preserve do
|
|
|
= raw bash_lexer.highlight(repo_setup_str)
|
|
= raw bash_lexer.highlight(repo_setup_str)
|
|
|
|
|
|
|
|
%br
|
|
%br
|
| ... | @@ -37,6 +39,7 @@ |
... | @@ -37,6 +39,7 @@ |
|
|
- exist_repo_setup_str = ["cd existing_git_repo",
|
|
- exist_repo_setup_str = ["cd existing_git_repo",
|
|
|
"git remote add origin #{@project.url_to_repo}",
|
|
"git remote add origin #{@project.url_to_repo}",
|
|
|
"git push -u origin master"].join("\n")
|
|
"git push -u origin master"].join("\n")
|
|
|
|
= preserve do
|
|
|
= raw bash_lexer.highlight(exist_repo_setup_str)
|
|
= raw bash_lexer.highlight(exist_repo_setup_str)
|
|
|
|
|
|
|
|
- if can? current_user, :admin_project, @project
|
|
- if can? current_user, :admin_project, @project
|
| ... | |
... | |
| ... | | ... | |