mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-07 14:05:52 +01:00
22 lines
636 B
HTML
22 lines
636 B
HTML
@(repository: service.RepositoryService.RepositoryInfo)(implicit context: app.Context)
|
|
@import context._
|
|
@import view.helpers._
|
|
@html.main(s"${repository.owner}/${repository.name}", Some(repository)) {
|
|
@html.header("code", repository)
|
|
<h3 style="margin-top: 30px;">Create a new repository on the command line</h3>
|
|
<pre>
|
|
touch README.md
|
|
git init
|
|
git add README.md
|
|
git commit -m "first commit"
|
|
git remote add origin @repository.httpUrl
|
|
git push -u origin master
|
|
</pre>
|
|
|
|
<h3 style="margin-top: 30px;">Push an existing repository from the command line</h3>
|
|
<pre>
|
|
git remote add origin @repository.httpUrl
|
|
git push -u origin master
|
|
</pre>
|
|
}
|