martes, 16 de septiembre de 2014

Configurando el ambiente

# crear usuario sistema123 con home

sudo useradd sistema123 -m
sudo su sistema123
mkdir app libs playground  && mkdir -p dev/local

Se debe ver asi

/home/sistema123
/home/sistema123/apps
/home/sistema123/libs                                       (mismas libs java,sdk,etc)
/home/sistema123/playground                          (va a estar mapeado nfhs, para compartir)
/home/sistema123/dev                                      
/home/sistema123/dev/local                             (cualquier cosa de uds propia)
/home/sistema123/dev/hackers                        (nombre del git , con CLONE)


# para el git clone
cd /home/sistema123/dev
git clone git@bitbucket.org:pythonHacherz/hackers.git

#generar llave
 ssh-keygen -t rsa

Abre la cuenta de bitbucket en settings agrega la llave publica.
cat ~/.ssh/id_rsa.pub

#first commit!
cd   /home/sistema123/dev/hackers
git init
git config --global user.name "USERNAME"
git config --global user.email "EMAIL"
vi test.txt
git add test.txt
git commit -m "asd"
git push


lunes, 15 de septiembre de 2014

git wiki

Set up your local directory

mkdir /path/to/your/projectcd /path/to/your/projectgit initgit remote add origin https://jamesjara@bitbucket.org/pythonHacherz/hackers.git

Create your first file, commit, and push

echo "jamesjara" >> contributors.txtgit add contributors.txtgit commit -m 'Initial commit with contributors'git push -u origin master