Type to search…

Bàsic

Git és un sistema de control de versions.

This page hasn't been translated yet — shown in its original language:Català

Introducció

Avui en dia tothom espera que facis servir un sistema de gestió de control de versions, que acostuma a ser git.

Per això les IDE ja no s’encarreguen de recuperar fitxers esborrats, o versions anteriors d’un fitxer perquè donen per suposat que estas fent servir git.

Però tu fas servir git? Més aviat no.

Instal.la git amb Scoop:

ps
scoop install git

Primers passos

Configura git:

shell
> git config --global init.defaultBranch main

Crea un directori test per començar a treballar, i entra en ell:

ps
mkdir test
cd test

Crea un fitxer hola.txt, escriu alguna cosa en ell i borra el fitxer:

ps
echo "Hola" > hola.txt
ls
rm hola.txt
ls

You're reading a preview.

Sign in with Google to read the full page. A Google account includes 5 free pages in total; students and teachers read their course pages without limit.

Sign in