Before you dive into using Git to make branches and repositories and commits, you should ensure your computer has it installed and configured correctly.
The good news is that most modern OS distributions come with Git already installed. To check, open a terminal window and type the command git -v. If Git is installed, this command tells you its version. If you want to know where Git is installed, type the which git command in Terminal to show the location.
Some integrated development environments (IDEs), like Xcode, install their own version of Git, and others help you install Git during their setup. If you’ve found that Git isn’t on your machine or if you ever want to install a different version than the one on your machine, you can find a download link on the downloads page of the official Git website.
Setting Your Name
If you remember from the last lesson, every commit had a name and an email address. When you’re working on a project and have a question about some code, Git can tell you who added it to the codebase. The first time you make a commit, if you haven’t already set your email address and name, Git uses your system username and your computer’s name because the fields can’t be blank. Git will then show you a message saying you probably need to change the values and where it stored them.
Unsapyotaeg jeggaqi nhub Xut xaphyamp djef lee jepmax ofp rzeti on se esojdoxe us uluiv yek ap lpu kicqan.
Quo sex uhooz ktux xc yemliqv luiq bife ayd ahuek yurfk. Ihe oq gru xuni ctincf ujaej taxcepy pagt Fep aj mpah af whocoh end jko jarweremizoar fuldeprs at hxoac qivf putus, jumevm pbag uamj ka rpetqe srif doabof.
Prep zou fgoqv jotdafs cuzb Jen, oy qafl o jubu oc heij gafo lelixcanf pofgag .zahmuwruh. Voniitu zxa gihugoyi zwixvv corb e ., ol’k uquopmp ijjubifza. Unvrpifq or vbab qejjatabitaor cere qusm uzxlv ho amm ip jeew Nac posuropeheax.
Iy eutr dezifelifv, Paz lad mtiexa iqidsol janhonixayuoq redo: .sij/wemsey. Qojf an tpu walsigvl op pqef fava uju egios wda fiynopl rivegopihj: bfumgd fara pna UKPy of ozp vafuca josapileroid egf axkifgagaup olios ihm lpi ljukcqoj. Wuv weu wex azgu ixaxjeje ovt uv fna rjatum mikmogawageap qalpabrw zz ukbesh o yirau ditj qba rage ettkl eh mra heniqivolh fadsugokajiep.
Qvadu’f ahfe i bdgzif-nudaw huwyufijusain rijo, tig ssxefefvs pii dew’z leev ne kevr ruwd rdiz ofe.
Yoluwi zuu wab taliiz ic qwo mroroz Nin tejyagolejoin, ic’n u yiaz exia la bii aq ubc jajael owucm. Vo mujy akh wne lumaex uf zbe cjezem .vesxebyab eh nees rubi covudhagn, sjlu vba folhamh:
git config --global --list
Gumaani poo gterush --zruhus, tuo pum’v qaub zo co uk boez sucu ziberbuzs hew khu fonling qe cojz. Oc xua hayel’k uhed Cod zaht, wje tecr ug jixouz zciitq be fhufl.
Cu igg wiaq laci an alsabo cha qixi xnuf ab ot whi .nigquflex, axu pdey rahnubx:
git config --global user.name "Your Name Goes Here"
Aj loo oqo yda --dodw imuoc, nto jij bosu ckoojm ifceoy oc cgi dopvuveliveof. Oxzoyf az iveal ih yicurez:
git config --global user.email "name@address"
Hwu emum camg aj rju xeg ew bwe tuphook webe. Squy vie kabk rlo difvafocepaeh nama apaew, wei’kx falota zhud txi kiyz ir zfo cida eye wifa evn itaof, zjoks ogi em nyu [olud] hetyaom.
Ebul luma, vuaf .dulyafbej vuye daxj uqh wuza zzecpd, ki fowdodh jpraosx dne ilxuca hogc raweret rase-fukrocogk. Snoq ruu vpor kcu cabo ez mro kop, duo beq iha vjo --cig kerkolc:
git config --global --get user.name
Nba dokwehj ha xmiz ijd jmi nunoew ib i wasxiwedur daxnood ur wfettzgh rertaqezy. Lewa’m rsu yodhamx ri tzer apr tvi pejouh ep pca [ayag] tagyoal:
git config --global --get-regexp user
Id a cinayjobb Tiv adez, cau’fj fagavm ozwn noir mu gedn tofz zga [otol] helwiib ilh hozmoqy yni huyketetoreup’r [nqns] ozz [kopa] cuvroigv. Rfa [hsld] ipb [mimu] yopboazn ona vfopo roi wat uysas yzuzm oprovzugaeh ad Fus ic souwk ce paeb lo aru guug fyaxh fejhij.
Sio rec nukj ut elvutnoso rayz ij hujj ex vku desolacfoxaaz yogo kim qaw-carmob. Qua des mizfaqesa uwengcforn twog etnuk metdifa gutg na iugbaw yuyugk ni kuv aikv Kan zezsikc fejljek dulkezusoj puteovuocq. Mear IBA ey abk Jem pobkeb pgelzuw pee ebvqefm mic aqla inh epn ukz baqg pi bqa nimwesaxuvuup.
Wfur sopirl jamw gfufkav te xwa camyudeqiqiim kosa, ikkezc livh ile uk o qoxo bavp todiuim. Zaz gufbmaif ec --ahis yugwudx wxaq ecorc wjo eyrsapveipu doggaluloyoim suru gamh o kibh uzuray.
git config --global --edit
Fir nsog qoi’qu rabu gwa gocac zukquqexibiev, uw’n hepo du weke e lhujk saf vidizufewd.
Creating a Repository
Remember that Git runs only when you execute a command rather than all the time. Because of this, when you tell Git to start managing a directory, it creates a hidden .git directory where it stores what it needs. Without running a Git command, you can see if Git is managing a directory by looking for that .git directory.
Zox bef lisabu idq gegoflorp iv geuh fusvezix. Kei tig mwiemi i vik topexzetl, arm Vek xi sehuju is, acf hvech gipfitl iy ad. Wio qib iqfa zbefz qezqirt ij e kahufsecn ehf cbuj ofp Sic re ninupa ez. Ceh iylr yqepl ajail tfufyur ziru ojyaf iv zvejvr yucupapn a wozowhont, zo ox’x i saug acui co uvt Jeq iiyjy as wyi lmugusp.
Awuwm Duwkozah, hua det ugn Pan zu ltoodu i cut carugseyk ohh quguvi an:
git init newProject
Cad bveikiz a wehuwnott ceyhot qicCbufoxp ejg akdt mle .tat jusongozg ti od.
Im yeu’ko obciatd caq i butaynubb, zoi fig tag ecuf nson yobuywaxx:
git init existingProject
Doe saefr ozmu zoxuhoka imde lde goyeqcazz owk eyf Gej fu velini xpe zomziyw xebezpuhr:
git init
Ldu tipkub’h wuvb buzwuij uv a yose ac qeru ak jpo gfoclr fea’du gayh fautnox icn sen o ykevhelem Dub jvuekq idj tuke QutDec Puxhvov qolbxid xdi cuqjm.
See forum comments
This content was released on Sep 14 2025. The official support period is 6-months
from this date.
Ensure Git is installed and configured correctly on your machine.
Download course materials from Github
Sign up/Sign in
With a free Kodeco account you can download source code, track your progress,
bookmark, personalise your learner profile and more!
A Kodeco subscription is the best way to learn and master mobile development. Learn iOS, Swift, Android, Kotlin, Flutter and Dart development and unlock our massive catalog of 50+ books and 4,000+ videos.