Page 1 of 1

Script para configurar y clonar repositorios de Github

Posted: Fri 27 Dec 2013, 06:44
by nilsonmorales
Script para configurar y clonar repositorios de Github de forma automatizada en Puppylinux
Escrito por D-coy en canal irc #puppy-es (Gracias jefe sos lo maximo)

Necesitarán tener instalado git
Paquete git-1.8.4.2.pet

Code: Select all

#!/bin/sh
#Script para automatizar configuración de git y clonar repositorios remotos
#27122013 Escritor por D-coy
#27122013, GPL3 (/usr/share/doc/legal)
#27122013 nilsonmorales lineas de ayuda

# Configuraciones de Usuario y Correo electronico

echo -n 'Ingrese su Usuario: '
read usuario
if git config --global user.name $usuario 2>/dev/null ; then
git config --global user.name $usuario
     
echo -n 'Ingrese su Correo: '
read correo
git config --global user.email $correo

#Configuraciones generales 
     
git config --global core.editor geany
git config --global core.pager ''
git config --global color.ui true
git config --global http.sslVerify false
git config --global push.default matching
git config --global push.default simple
git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"
echo -n "Quieres clonar un repo? s/n: "
read clonar
if [ "$clonar" == "s" ]; then

#Introducir dirección electrónica del repositorio a clonar
#Ejemplo: https://github.com/nilsonmorales/Badass

echo -n "URL del repo a clonar: "
read repo
git clone $repo
fi
else
echo 'Necesitas tener "git" instalado...'   
exit
fi 

Posted: Mon 17 Feb 2014, 03:23
by nilsonmorales
Además del script he comenzado una guía practica de como usar guit de forma sencilla en Puppy.

https://github.com/Woofshahenzup/Puppyes-ccgit

Saludos cordiales.

Aprendamos a usar git en PuppyLinux

Posted: Thu 17 Jul 2014, 05:02
by nilsonmorales
He continuado agregando mas teoria el Repositorio-Proyecto
https://github.com/Woofshahenzup/Puppyes-ccgit