Mudanças entre as edições de "GitLab - criando um projeto no repositório detic"
(Criou página com '<div class="git-empty"> <h5>Git global setup</h5> <pre class="light-well">git config --global user.name "nome do usuário" git config --global user.email "usuario da máquida...') |
|||
(Uma revisão intermediária pelo mesmo usuário não está sendo mostrada) | |||
Linha 8: | Linha 8: | ||
<h5>Create a new repository</h5> | <h5>Create a new repository</h5> | ||
− | <pre class="light-well">git clone | + | <pre class="light-well">git clone http://gitlab.detic.ro.gov.br/SUPEL/nome do projeto.git |
cd nome do projeto | cd nome do projeto | ||
touch README.md | touch README.md | ||
Linha 19: | Linha 19: | ||
<pre class="light-well">cd existing_folder | <pre class="light-well">cd existing_folder | ||
git init | git init | ||
− | git remote add origin | + | git remote add origin http://gitlab.detic.ro.gov.br/SUPEL/nome do projeto.git |
git add . | git add . | ||
git commit -m "Initial commit" | git commit -m "Initial commit" | ||
Linha 27: | Linha 27: | ||
<h5>Existing Git repository</h5> | <h5>Existing Git repository</h5> | ||
<pre class="light-well">cd existing_repo | <pre class="light-well">cd existing_repo | ||
− | git remote add origin | + | git remote add origin http://gitlab.detic.ro.gov.br/SUPEL/nome do projeto.git |
git push -u origin --all | git push -u origin --all | ||
git push -u origin --tags | git push -u origin --tags | ||
</pre> | </pre> | ||
</div> | </div> |
Edição atual tal como às 20h00min de 30 de novembro de 2018
Git global setup
git config --global user.name "nome do usuário" git config --global user.email "usuario da máquida@rondonia.local."
Create a new repository
git clone http://gitlab.detic.ro.gov.br/SUPEL/nome do projeto.git cd nome do projeto touch README.md git add README.md git commit -m "add README" git push -u origin master
Existing folder
cd existing_folder git init git remote add origin http://gitlab.detic.ro.gov.br/SUPEL/nome do projeto.git git add . git commit -m "Initial commit" git push -u origin master
Existing Git repository
cd existing_repo git remote add origin http://gitlab.detic.ro.gov.br/SUPEL/nome do projeto.git git push -u origin --all git push -u origin --tags