DES:Git

(Diferença entre revisões)
Ir para: navegação, pesquisa
Linha 12: Linha 12:
 
Inicializar um projeto
 
Inicializar um projeto
  
   git clone http://netsr-vers01.unioeste.br:82/java-project/PROJETO_BASE.git --recursive NOVO_PROJETO
+
   git clone http://netsr-vers01.unioeste.br:82/java-project/pwm-unioeste.git temp
   cd NOVO_PROJETO
+
  cd temp
   git archive
+
  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/base-project.git
 +
  git push -u origin master
 +
 +
 
 
   git submodule add URL_DA_BIBLIOTECA.git DIRETORIO_DESTINO
 
   git submodule add URL_DA_BIBLIOTECA.git DIRETORIO_DESTINO
  

Edição de 15h45min de 27 de julho de 2015

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

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/pwm-unioeste.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/base-project.git
 git push -u origin master 

 
 git submodule add URL_DA_BIBLIOTECA.git DIRETORIO_DESTINO


Explicar:

 -o que tem em cada arquivo .git (gitmodule,gitignore,etc)
 -como funciona os submodulos
Ferramentas pessoais
Espaços nominais
Variantes
Ações
Navegação
Ferramentas