Skip to content

Mini Tutorial : Código de SoloLearn a Github | Github (control de versiones) versus Sololearn (ambiente de ejecución)

Notifications You must be signed in to change notification settings

nelbren/my_codes_in_sololearn

Repository files navigation

Mini Tutorial : Código de SoloLearn a Github

Tabla de contenido

1. Requisitos previos

  • Cuentas en:
    • GitHub
    • SoloLearn

2. Crear repositorio en Github

  • Clickear en New
  • Escribe el nombre del repositorio my_codes_in_sololearn y clickear en Create repository
  • Seleccionar el método de conexión a GitHub https o ssh

NOTA: En el caso de un proyecto propio, aconsejo usar ssh con el uso de llaves pública y privada.

Al usar https, al obtener cambios del repositorio no se requiere contraseña. Solo es requerida cuando se envíen cambios al repositorio.

3. Configurar llave pública y privada

  • Crear llaves usando linea de comando (Linux o MAC)
ssh-keygen -t dsa
  • Crear llaves usando PuTTYgen (Windows)

Ver instrucciones en PUTTYGEN - KEY GENERATOR FOR PUTTY ON WINDOWS

  • Asignar llave publica a Github

    • Clickear en Settings

    • Clickear en SSH and GPG keys

    • Clickear en New SSH key

    • Copiar la llave pública generada al portapapeles

    • Pegar la llave pública del portapapeles y asignarle un titulo, clickear Add SSH key

    • Confirmar la asignación con la contraseña de la cuenta

4. Subir archivos al repositorio

  • Por primera vez - v0.0.1

    git init
    git add .
    git commit -m "Mi primera vez!"
    git remote add origin git@github.com:nelbren/my_codes_in_sololearn.git
    git push -u origin master

  • Por segunda vez - v0.0.2

    git status
    echo shift_cipher.c.bin > .gitignore
    git add .
    git commit -m "Update to v0.0.2"
    git push

  • Por tercera vez - v0.0.3

    rm shift_cipher.c.bin
    git status
    git add .
    git commit -m "Update to v0.0.3"
    git push

5. Resultados de cambios

Versión Github SoloLearn Lenguaje Descripción
0.0.1 heart.rb heart.rb_v0.0.1 Ruby DisplayAHeart-FirstTry!
shift_cipher.c shift_cipher_v0.0.1.c C UseShiftCipherIn28lines
shift_cipher.c_compile.bash - Bash Bash4CompileCProgram
shift_cipher.php shift_cipher_v0.0.1.php PHP UseShiftCipherIn13lines
shift_cipher.py shift_cipher_v0.0.1.py Python UseShiftCipherIn10lines
shift_cipher.rb shift_cipher_v0.0.1.rb Ruby UseShiftCipherIn20lines
string_rotations.rb string_rotations_v0.0.1.rb Ruby UsingSubstring
0.0.2|diff heart.rb heart.rb_v0.0.2 Ruby DisplayAHeart-UseShortenedIf!
shift_cipher.c shift_cipher_v0.0.2.c C UseTernaryOperatorIn15lines
shift_cipher.rb shift_cipher_v0.0.2.rb Ruby UseTernaryOperatorIn13lines
string_rotations.rb string_rotations_v0.0.2.rb Ruby UsingRotate
0.0.3|diff heart.rb heart.rb_v0.0.3 Ruby DisplayAHeart-UseShortBlocks1
shift_cipher.rb shift_cipher_v0.0.3.rb Ruby UseShorthandOperIn11lines
string_rotations.rb string_rotations_v0.0.3.rb Ruby UsingRegex
0.0.4|diff heart.rb heart.rb_ v0.0.4 Ruby DisplayAHeart-UseShortBlocks2
shift_cipher.rb shift_cipher_v0.0.4.rb Ruby UseBracketSyntaxIn7lines
string_rotations.rb string_rotations_v0.0.4.rb Ruby UsingSubstringAndOnlyOneAssing
0.0.5|diff heart.rb heart.rb_ v0.0.5 Ruby DisplayAHeart-UseCase2Array
string_rotations.rb string_rotations_v0.0.5.rb Ruby UsingSubstringAndOnlyOneAssingInside
0.0.6|diff heart.rb heart.rb_ v0.0.6 Ruby DisplayAHeart-UseMultipleAssign
string_rotations.rb string_rotations_v0.0.6.rb Ruby UsingAnCustomFunction
0.0.7|diff heart.rb heart.rb_ v0.0.7 Ruby DisplayAHeart-GlobalVarsToLocal
0.0.8|diff heart.rb heart.rb_ v0.0.8 Ruby DisplayAHeart-Array2NewAssign''
0.0.9|diff heart.rb heart.rb_v0.0.9 Ruby DisplayAHeart-ReplaceIfForTwoIf
Hecho con

drawing

por Martin Nelbren Cuellar

About

Mini Tutorial : Código de SoloLearn a Github | Github (control de versiones) versus Sololearn (ambiente de ejecución)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published