Script para configurar y clonar repositorios de Github

Post Reply
Message
Author
User avatar
nilsonmorales
Posts: 972
Joined: Fri 15 Apr 2011, 14:39
Location: El Salvador

Script para configurar y clonar repositorios de Github

#1 Post 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 
Attachments
ccgit.gz
Remover falso .gz
(1.19 KiB) Downloaded 347 times
[b][url=http://nilsonmorales.blogspot.com/]My blog |[/url][/b][b][url=https://github.com/woofshahenzup]| Github[/url][/b]
[img]https://i.postimg.cc/5tz5vrrX/imag018la6.gif[/img]
[img]http://s5.postimg.org/7h2fid8pz/botones_logos3.png[/img]

User avatar
nilsonmorales
Posts: 972
Joined: Fri 15 Apr 2011, 14:39
Location: El Salvador

#2 Post 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.
[b][url=http://nilsonmorales.blogspot.com/]My blog |[/url][/b][b][url=https://github.com/woofshahenzup]| Github[/url][/b]
[img]https://i.postimg.cc/5tz5vrrX/imag018la6.gif[/img]
[img]http://s5.postimg.org/7h2fid8pz/botones_logos3.png[/img]

User avatar
nilsonmorales
Posts: 972
Joined: Fri 15 Apr 2011, 14:39
Location: El Salvador

Aprendamos a usar git en PuppyLinux

#3 Post by nilsonmorales »

He continuado agregando mas teoria el Repositorio-Proyecto
https://github.com/Woofshahenzup/Puppyes-ccgit
[b][url=http://nilsonmorales.blogspot.com/]My blog |[/url][/b][b][url=https://github.com/woofshahenzup]| Github[/url][/b]
[img]https://i.postimg.cc/5tz5vrrX/imag018la6.gif[/img]
[img]http://s5.postimg.org/7h2fid8pz/botones_logos3.png[/img]

Post Reply