Skip to content

Como contribuir a un proyecto

Marcelo Forets edited this page Oct 23, 2019 · 2 revisions

Pasos para contribuir a un paquete en github de otra persona

Supongamos que no tengo acceso de push.

1- En Julia hacer ] dev https://github.com/KristofferC/JuAFEM.jl.git.

2- Hacer un fork en github del proyecto https://github.com/KristofferC/JuAFEM.jl.git usando el boton "Fork".

3- Ir a ~/.julia/dev/JuAFEM y cambiar git el origin a mi fork y agregar upstream al repositorio original con los siguientes pasos.

Inicialmente es:

[mforets@xps JuAFEM]$ git remote -v
origin        https://github.com/KristofferC/JuAFEM.jl.git (fetch)
origin        https://github.com/KristofferC/JuAFEM.jl.git (push)

Despues escribo los siguientes comandos:

$ git remote add upstream https://github.com/KristofferC/JuAFEM.jl.git
$ git remote remove origin
$ git remote add origin https://github.com/mforets/JuAFEM.jl.git

Al final queda:

[mforets@xps JuAFEM]$ git remote -v
origin  https://github.com/mforets/JuAFEM.jl.git (fetch)
origin  https://github.com/mforets/JuAFEM.jl.git (push)
upstream        https://github.com/KristofferC/JuAFEM.jl.git (fetch)
upstream        https://github.com/KristofferC/JuAFEM.jl.git (push)
Clone this wiki locally