osmanc777
10/10/2017 - 4:47 PM

instalr git en amazon

//crear ssh 
sudo ssh-keygen -t rsa -C "ocruz@jupi.tech"

// se ejecuta este comando en la carpeta raiz del servidor
sudo apt-get install git

//si falla la instalacion ejetutar este comando y luego intentar de nuevo 
sudo apt-get update

//iniciar git en aws
sudo git init

//agregar archivos
sudo git add .

//agregar repositorio
sudo git remote add origin ssh://git@bitbucket.org/jupitertech/nombre repo.git

//commit 
sudo git commit -m "subiendo archivos"

//enviar a repo
sudo git push -u origin master

//refrescar repo
sudo git fetch origin

// merge en repo
sudo git merge origin/master

//clonar repo a AWS
sudo git clone git@bitbucket.org:jupitertech/pagalocash.git

//si hay problemas solo se elimina el repo y luego se vuelve a iniciar
rm -rf .git