{"id":88,"date":"2016-02-23T13:59:47","date_gmt":"2016-02-23T12:59:47","guid":{"rendered":"https:\/\/wpethzprd.ethz.ch\/isgdmath\/?p=88"},"modified":"2023-05-17T10:48:41","modified_gmt":"2023-05-17T08:48:41","slug":"create-a-git-repository","status":"publish","type":"post","link":"https:\/\/blogs.ethz.ch\/isgdmath\/create-a-git-repository\/","title":{"rendered":"Create a Git Repository"},"content":{"rendered":"<p>As a D-MATH employee you can have up to 10 Git Projects on our gitlab server located at<\/p>\n<ul>\n<li><a href=\"https:\/\/gitlab.math.ethz.ch\/\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/gitlab.math.ethz.ch\/<\/a><\/li>\n<\/ul>\n<p><!--more--><\/p>\n<blockquote><p><span style=\"color: #ff0000\">Please don&#8217;t save&nbsp;big data files and binary files (like compiled codes, PDF files, images, &#8230;)&nbsp;in your repository. <strong>Ideally a&nbsp;repository has to contains only source codes.<\/strong><\/span><\/p><\/blockquote>\n<p>You can collaborate with every ETH Zurich employee, if you have a <strong>small<\/strong> group of external collaborator you can request the account as described <a href=\"https:\/\/blogs.ethz.ch\/isgdmath\/request-a-gitlab-account-people-without-a-eth-account\/\" target=\"_blank\" rel=\"noopener noreferrer\">here<\/a>.<\/p>\n<p>With the following steps you should be able to create your Git repository.<\/p>\n<p>Login with your ETH account and password for Web-Application (AAI\/LDAP)<\/p>\n<p><a href=\"https:\/\/blogs.ethz.ch\/isgdmath\/files\/2016\/02\/gitlab1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-92\" src=\"https:\/\/blogs.ethz.ch\/isgdmath\/files\/2016\/02\/gitlab1-1024x549.png\" alt=\"gitlab1\" width=\"625\" height=\"335\" srcset=\"https:\/\/blogs.ethz.ch\/isgdmath\/files\/2016\/02\/gitlab1-1024x549.png 1024w, https:\/\/blogs.ethz.ch\/isgdmath\/files\/2016\/02\/gitlab1-300x161.png 300w, https:\/\/blogs.ethz.ch\/isgdmath\/files\/2016\/02\/gitlab1-624x335.png 624w, https:\/\/blogs.ethz.ch\/isgdmath\/files\/2016\/02\/gitlab1-900x483.png 900w, https:\/\/blogs.ethz.ch\/isgdmath\/files\/2016\/02\/gitlab1.png 1484w\" sizes=\"auto, (max-width: 625px) 100vw, 625px\" \/><\/a><\/p>\n<p>Once logged in, your Dashboard will be shown, there you can create your first project, to do that just click the &#8220;New Project&#8221; button.<\/p>\n<p><a href=\"https:\/\/blogs.ethz.ch\/isgdmath\/files\/2016\/02\/gitlab2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-97\" src=\"https:\/\/blogs.ethz.ch\/isgdmath\/files\/2016\/02\/gitlab2-1024x582.png\" alt=\"gitlab2\" width=\"625\" height=\"355\" srcset=\"https:\/\/blogs.ethz.ch\/isgdmath\/files\/2016\/02\/gitlab2-1024x582.png 1024w, https:\/\/blogs.ethz.ch\/isgdmath\/files\/2016\/02\/gitlab2-300x170.png 300w, https:\/\/blogs.ethz.ch\/isgdmath\/files\/2016\/02\/gitlab2-624x354.png 624w, https:\/\/blogs.ethz.ch\/isgdmath\/files\/2016\/02\/gitlab2-900x511.png 900w, https:\/\/blogs.ethz.ch\/isgdmath\/files\/2016\/02\/gitlab2.png 1491w\" sizes=\"auto, (max-width: 625px) 100vw, 625px\" \/><\/a><\/p>\n<p>On the next step you have to choose the name of your project.<\/p>\n<p><a href=\"https:\/\/blogs.ethz.ch\/isgdmath\/files\/2016\/02\/gitlab3.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-100\" src=\"https:\/\/blogs.ethz.ch\/isgdmath\/files\/2016\/02\/gitlab3-1024x582.png\" alt=\"gitlab3\" width=\"625\" height=\"355\" srcset=\"https:\/\/blogs.ethz.ch\/isgdmath\/files\/2016\/02\/gitlab3-1024x582.png 1024w, https:\/\/blogs.ethz.ch\/isgdmath\/files\/2016\/02\/gitlab3-300x170.png 300w, https:\/\/blogs.ethz.ch\/isgdmath\/files\/2016\/02\/gitlab3-624x355.png 624w, https:\/\/blogs.ethz.ch\/isgdmath\/files\/2016\/02\/gitlab3-900x511.png 900w, https:\/\/blogs.ethz.ch\/isgdmath\/files\/2016\/02\/gitlab3.png 1487w\" sizes=\"auto, (max-width: 625px) 100vw, 625px\" \/><\/a><\/p>\n<p>Finally your new project is created.<\/p>\n<p><strong>The repository is world wide reachable through the https:\/\/ Protocol.<\/strong><\/p>\n<p>If you want to use the <strong>ssh<\/strong> Protocol, please be aware that it is <strong>only<\/strong> reachable through a <strong>VPN<\/strong> or <strong>inside<\/strong> the <strong>ETH<\/strong> network.<\/p>\n<p>To setup your ssh access you have to add your <strong>public<\/strong> ssh key, which is normally in your home directory. With the following command in a terminal your public key will be printed out:<\/p>\n<blockquote><p>cat ~\/.ssh\/id_rsa.pub<\/p><\/blockquote>\n<p><a href=\"https:\/\/blogs.ethz.ch\/isgdmath\/files\/2016\/02\/gitlab4.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-102\" src=\"https:\/\/blogs.ethz.ch\/isgdmath\/files\/2016\/02\/gitlab4-1024x658.png\" alt=\"gitlab4\" width=\"625\" height=\"402\" srcset=\"https:\/\/blogs.ethz.ch\/isgdmath\/files\/2016\/02\/gitlab4-1024x658.png 1024w, https:\/\/blogs.ethz.ch\/isgdmath\/files\/2016\/02\/gitlab4-300x193.png 300w, https:\/\/blogs.ethz.ch\/isgdmath\/files\/2016\/02\/gitlab4-624x401.png 624w, https:\/\/blogs.ethz.ch\/isgdmath\/files\/2016\/02\/gitlab4-900x578.png 900w, https:\/\/blogs.ethz.ch\/isgdmath\/files\/2016\/02\/gitlab4.png 1494w\" sizes=\"auto, (max-width: 625px) 100vw, 625px\" \/><\/a><\/p>\n<p>Insert the content of this file into the textfield and hit the button<\/p>\n<p><a href=\"https:\/\/blogs.ethz.ch\/isgdmath\/files\/2016\/02\/gitlab5.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-103\" src=\"https:\/\/blogs.ethz.ch\/isgdmath\/files\/2016\/02\/gitlab5-1024x371.png\" alt=\"gitlab5\" width=\"625\" height=\"226\" srcset=\"https:\/\/blogs.ethz.ch\/isgdmath\/files\/2016\/02\/gitlab5-1024x371.png 1024w, https:\/\/blogs.ethz.ch\/isgdmath\/files\/2016\/02\/gitlab5-300x109.png 300w, https:\/\/blogs.ethz.ch\/isgdmath\/files\/2016\/02\/gitlab5-624x226.png 624w, https:\/\/blogs.ethz.ch\/isgdmath\/files\/2016\/02\/gitlab5-900x326.png 900w, https:\/\/blogs.ethz.ch\/isgdmath\/files\/2016\/02\/gitlab5.png 1498w\" sizes=\"auto, (max-width: 625px) 100vw, 625px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>As a D-MATH employee you can have up to 10 Git Projects on our gitlab server located at https:\/\/gitlab.math.ethz.ch\/<\/p>\n","protected":false},"author":43853,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[197756],"tags":[],"class_list":["post-88","post","type-post","status-publish","format-standard","hentry","category-code-repositories"],"_links":{"self":[{"href":"https:\/\/blogs.ethz.ch\/isgdmath\/wp-json\/wp\/v2\/posts\/88","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.ethz.ch\/isgdmath\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.ethz.ch\/isgdmath\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.ethz.ch\/isgdmath\/wp-json\/wp\/v2\/users\/43853"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.ethz.ch\/isgdmath\/wp-json\/wp\/v2\/comments?post=88"}],"version-history":[{"count":0,"href":"https:\/\/blogs.ethz.ch\/isgdmath\/wp-json\/wp\/v2\/posts\/88\/revisions"}],"wp:attachment":[{"href":"https:\/\/blogs.ethz.ch\/isgdmath\/wp-json\/wp\/v2\/media?parent=88"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.ethz.ch\/isgdmath\/wp-json\/wp\/v2\/categories?post=88"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.ethz.ch\/isgdmath\/wp-json\/wp\/v2\/tags?post=88"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}