Skip to content

Instantly share code, notes, and snippets.

View larchadrg's full-sized avatar

Lara Combina larchadrg

View GitHub Profile

If you are like me you find yourself cloning a repo, making some proposed changes and then deciding to later contributing back using the GitHub Flow convention. Below is a set of instructions I've developed for myself on how to deal with this scenario and an explanation of why it matters based on jagregory's gist.

To follow GitHub flow you should really have created a fork initially as a public representation of the forked repository and the clone that instead. My understanding is that the typical setup would have your local repository pointing to your fork as origin and the original forked repository as upstream so that you can use these keywords in other git commands.

  1. Clone some repo (you've probably already done this step).

    git clone git@github...some-repo.git
@ArgiesDario
ArgiesDario / listas_enlazadas.c
Last active November 28, 2023 17:11
Programación en C – Listas Enlazadas – Que son y cómo se usan
#include <stdio.h>
#include <stdlib.h>
typedef struct snodo{ //snodo es el nombre de la estructura
int valor;
struct snodo *sig; //El puntero siguiente para recorrer la lista enlazada
}tnodo; //tnodo es el tipo de dato para declarar la estructura
typedef tnodo *tpuntero; //Puntero al tipo de dato tnodo para no utilizar punteros de punteros