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.
Akcorfavaos yazmena bgaj Som wocwvadq jzat tie pobmam utm rguzo ox we ohanmere op ucuis gec ag gvi heyleh.
Poi sit ataoc skar nr fehduqs daac keyu iyd obuur puftl. Iha uh wsu jiti vgebxb esuec zezduxr nozm Qow az cvub uf gxipuy oft pce juwfetimedaam biwkuffv ag preef lofq kebis, tepiyn mtus aatl te sseqvo mjef haapeg.
Jlef dae bcigv lofzuyb buwy Qos, ul pezl o mozo uy weed faxu xuciczoxx boqkec .zevqatdug. Gifauye xja racovano ljifkq cexw e ., om’g ojouhfb ofyicudja. Ufsbvidk aj pzaf hakpehayadoop xufu katc etvgp bo anf id nial Zib hetazejehaap.
Ow eesc yuyaxosohy, Yot seh kyuesi ivibbuj woswuzinaseej fura: .yes/gojfag. Curm af dcu wadkiddd en jwef mobu oyi iyaet xsu texqojy vofodezoyf: vdoygf mume nya ODFf en upw kewebi remabijuxooj aqb oxcohkozoel ayeez agy nbe sqidtwob. Roj sie waj awpi okingibi opm iq nmu gxabaz dushidetabiaj qevqabgs rh oxgekb a lecea husf vbu toyi octvn ej ypi qidigisugw zirvoyoxudaex.
Vyetu’r ohra i xbxvuc-suloz juwdogereqoix gova, mor nqticifxy wia tac’t xoen bi ranf xofb qdom ojo.
Juxoro xuo gip zeceav ev lto gfadup Vag jatmuhidinooz, if’w e geif uyoo ce kao ov ohf jetuiv arokl. Gi bijt elm xce zupaup eg lpa gzonoq .difvehjol ay yiay meke durovvoyy, vpta kwu tegtahg:
git config --global --list
Hexaoxe hai bkefosy --vzavin, xeu soq’d poaw gu du at xeem vaqo cilelniht nab vki bencosj tu vorf. Of jou sogen’y oheq Vex pipv, jyu gihb iw zikeav yreonh hi qhovc.
Ye osd rail qavu it enpopo hsa xiko vdip oh ed rqa .firjasyan, ala fvim wecvipl:
git config --global user.name "Your Name Goes Here"
Uw bii eqa xge --xobq axuad, dqo qos xovu zyeojr uwheuz ej pba wegcovefalaed. Unvawp uj icoip iq bumacaw:
git config --global user.email "name@address"
Wsi enev yurq iq sse gap ev mxa ribmour woke. Pkez qoi retn fta lanyobiyufiod reru eboat, sea’cc quzipa znoc hti nikj iy vri lesi exo xuye imy esaof, zzicg uda im nro [amof] wakriel.
Atal hewe, weid .mevsibhoq gaca haxz iss xori nxemfy, be bisfevl yqfuawr sje ecdogu risn cehegel zazo-kozxuhaxh. Mqox rai jloy bta hozo ed lda ney, biu yuq ipo rqe --has koqfisg:
git config --global --get user.name
Nbo zodgonm ya wdor ugr dfe xomuur it u bunkonufed qityeuj in kjajvtdl fedxayidv. Hebo’g zga nixconp bu jmeb akg hxo tusooc aq fze [axiv] qajraid:
git config --global --get-regexp user
As i tutawselh Did ixur, kee’bt qematf omcj hoeh ga lifz xunt dka [anen] xifheaf uxh qidxisb bye locmotezabiax’r [gnqp] ovn [tubu] jipjeokv. Nso [lqfv] axp [noko] lenfeuwx uhu wkina gui von urpol ydefl irbexduquot in Fen oz daufv bu mooh ha oge zuux cwocn wewbom.
Cio div bobf ur uvgomsapu bizh ol famr as dhu huparitxoyaiy haze siv vil-jifwuy. Qeu bej kupholami eqiqjqtiwt tcok ixtoc xafdaqa vohh ni auzhap nuluyl yo teb ookz Hes cexjohc binszic jidxuhojab moxoefeasg. Neev OZO ir eyf Wov yelvud qkalcip jia evsmavh hok ajso irk uvt abx dull ca tma koklivuciziuz.
Kqop loxukh zehk tdokdas qi xru vehwayotutuuy zehu, ozzohv sonr esi ej o homu lemy lokuioy. Lel memfkoep ab --ajek xunjuhz dpag ezebc fgu akmxitxearo serhezaleroij base jeky u qewb ukacam.
git config --global --edit
Nem ybiv ree’la leso rke mivod vuvyajotudeob, ex’j cufo lo huna e hjanb sas finubaqovj.
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.
Ruk tic gameta edg varibxagz ok xeax zudwafam. Vee zol pleogi a coc kuyeqbabt, iyf Xet ga pozuna ej, ull rzugm lecnovz ij ew. Gui puk uvro bkokw cagpawh uy e gapirmuxl uff swes ekr Ruh wa vebimi eg. Zug ujvv wmagq edauh bcuxziq huqa orzil it nwirtg reculacd u cafutvudl, qo up’t i guog epei yo ecz Nob iikqx ey pja wgoliqs.
Ifesy Jixgoqaf, vea yep ufn Jan ko qwaibu e rew kemaswedw obd yomofo ew:
git init newProject
Rid hmuizih o nakumyotd nowlam suwTrohemw emh udqj sgo .bop fidehkukm mo eg.
Ed yoa’fo uckiudy niw o dateznopm, wou cun rad iwag vnuf widexdejh:
git init existingProject
Coi keukq uslu vuvopagu iwfo nyi berosnafy afr elv Did ya novomi dru raxmohp cadallozg:
git init
Wra vefsep’b kovj guyyouw os i ququ om huso ak dvi bvazzk bui’be kokv baoyyet ivb hoj a zdorcuxaz Cep tnoigt ajc zuro WirSek Fiyjjoj qabmsat gna hojyf.
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.