DES:Git
(Diferença entre revisões)
Linha 14: | Linha 14: | ||
Inicializar um projeto | Inicializar um projeto | ||
− | git clone http://netsr-vers01.unioeste.br:82/java-project/ | + | git clone http://netsr-vers01.unioeste.br:82/java-project/projetobase.git temp |
cd temp | cd temp | ||
git archive -o ..\temp.zip HEAD | unzip ..\temp.zip -d ..\new | git archive -o ..\temp.zip HEAD | unzip ..\temp.zip -d ..\new | ||
Linha 23: | Linha 23: | ||
git init | git init | ||
− | git remote add origin http://netsr-vers01.unioeste.br:82/java-project/ | + | git remote add origin http://netsr-vers01.unioeste.br:82/java-project/nome-do-novo-projeto.git |
git push -u origin master | git push -u origin master | ||
− | |||
git submodule add URL_DA_BIBLIOTECA.git DIRETORIO_DESTINO | git submodule add URL_DA_BIBLIOTECA.git DIRETORIO_DESTINO | ||
+ | |||
+ | Inicializar um projeto (MODO FACIL) | ||
+ | |||
+ | Vai em NEW PROJECT no GitLab | ||
+ | Preencha as informações assim: | ||
+ | path -> nome do projeto (geralmente é o sstCodigo) | ||
+ | namespace -> java-project | ||
+ | Import project from -> Any repo by URL | ||
+ | Git repository URL -> http://usuariounioeste:senhaunioeste@netsr-vers01.unioeste.br:82/java-project/projetobase.git | ||
+ | Visibility Level -> Private | ||
+ | Clique em CREATE PROJECT | ||
Edição de 19h12min de 27 de abril de 2016
Configurar usuário para commit/push (Utilizar nome completo e email/usuário da Unioeste)
git config --global user.name "Tiago Alexandre Schulz Sippert" git config --global user.email "tiago.sippert@unioeste.br" git config --global credential.helper store
- Quando trocar a senha e não logar mais, basta executar as três linhas acima novamente e vai pedir as credenciais novamente.
Baixar o projeto
git clone http://netsr-vers01.unioeste.br:82/java-project/academus.git --recursive
Inicializar um projeto
git clone http://netsr-vers01.unioeste.br:82/java-project/projetobase.git temp cd temp git archive -o ..\temp.zip HEAD | unzip ..\temp.zip -d ..\new cd .. rm temp.zip rm -R -f temp cd new
git init git remote add origin http://netsr-vers01.unioeste.br:82/java-project/nome-do-novo-projeto.git git push -u origin master git submodule add URL_DA_BIBLIOTECA.git DIRETORIO_DESTINO
Inicializar um projeto (MODO FACIL)
Vai em NEW PROJECT no GitLab Preencha as informações assim: path -> nome do projeto (geralmente é o sstCodigo) namespace -> java-project Import project from -> Any repo by URL Git repository URL -> http://usuariounioeste:senhaunioeste@netsr-vers01.unioeste.br:82/java-project/projetobase.git Visibility Level -> Private Clique em CREATE PROJECT
Explicar:
-o que tem em cada arquivo .git (gitmodule,gitignore,etc) -como funciona os submodulos
Utilização de Tag's para as issues criadas no GitLab (por enquanto nada disso é utilizado)
TAGS: https://www.quora.com/What-is-the-best-way-to-name-GitHub-issue-labels https://robinpowered.com/blog/best-practice-system-for-organizing-and-tagging-github-issues/
pri low,normal,high,critical type bug,feature,enhancement,discussion, idea,support,task status in-progress,resolved, others wontfix,invalid,duplicate, on hold question,documentation,todo, design,watchlist, optimization