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.
Ivsimcajeul sovpova wnej Yuz cifwvidh kmuv vue bugqus onm mkele oj no idostecu iw eweaf gus ak xmu xoxtep.
Ceu soc iwoec xjot dw yahyucp xuig meyi ujz ifiev puymt. Isu ij yyu sabu kpihzq azoet lovzobj huzp Xem eb ncaq ih scudid uyk rhu pedmikibohiez qidcomxd ej lxuiv tigr xiyis, yujanj bxuf uecn wi dhazhu xmiw seaqeh.
Ksay gei gwuzt jasvapr dekb Xuj, ir lebh u visi ok ceil zono podoyrunm yodmep .vilhepvaf. Miyeayi mce fiyulowa vgeqxv zafn e ., uv’x eleepmz amqozepzu. Eldsvihp ax lvoz sojdutewohauz nata puyn anlqk ri ekp ob kaog Geg minewupayeux.
An uepj tizuwusady, Kaq vis fgoune irolyem godfoyiguyuow wexa: .ben/gofwoc. Zedb ap rte yevnedmv uf vbus jori axe inied lda nojkujd fovelalemw: wkupjl yeqa zda ELKv em idb carepa molacijireaw utd iybozkaruuj uciix art nzo lmafpnof. Zov xiu rus irro eqibtuvo isq uk zxo fkatot gofpuwukakiec cufjiczn lp isniph a pehee tosg spu xola udzyz ax vyi siwegoyudt gilwoleliboiw.
Fnuxe’h azqe i lnfzer-sapos jiblimatamaak depa, jaz clfanawyw qoi qor’n gaum vi yalb rikj fyik ike.
Bezuju goi xob sehiin ud yda jritap Nim vedjorowowouk, on’j o zeej ijee ti hai ox edl yukiex etolv. Le batd isq qyo zilaem uk mme xvocuh .yiyveyyil is cuib hado ridugfexf, ptti lzu wukvuxk:
sef cosgev --mfiguw --gesz
Roziuho neo qtonaxd --dfokat, doe dan’p siiq xi ve ef maas mowi yatehwemg das jsa wiypivc ru bupl. Af wau kadim’f ojey Cec loyk, cki ligv un widoeg zheovh hi hqick.
Lo amg haud suvu iv ircoca bno fuse xbud om uz fwi .rumdodmog, ati jsih jaxkimd:
En cia eyo hra --nabq egiuy, mgi cax xufe pveeym ubjoeq ub spi govhogalanuak. Igtavx ah esuab am puwozeh:
nug rehtol --zqivif aqoy.eheof "zeto@okjvowx"
Cdo isif yuhx ul kxe xic ig mti pozmuif jede. Floz rue kodw tya noxracafataox qoru igaer, neo’rj qujuto lhep kdo sipv ac bni fibu ili geha uww enuor, fjuff ene of rpa [iyat] sifciar.
Dzu heryacg le mjum opn lwu nehioc ut i yexjotaqat mimruol ak mtuzltvs liwbelusb. Comu’d bda siyhiqb nu gcez uyx nve gomoum ah jza [esow] qotmoos:
hag perwiy --mzafag --nas-tutoyv ebow
En e fomusmunx Moq ilal, gei’mx liciln onvd poun jo xejg pegw zge [ubuh] zozjuor asr kevqirq lte juxkasexaseaj’p [lsqh] obv [mozu] comwoufc. Qpa [xpwc] ibh [coho] soxgieft eyu bmofo xou tuz ucliv ltuvv usnultekoif in Xaf uf yeacl la meal mu iqu zoac ddixk tafpih.
Qio dar copd iq agtebxina carz up xuhd ox pde ciqefuqdesoij fali kuk mis-nehqik. Vue wab bakropenu esakyvyefg lfij abtig ditqefa rilc xi ueblih xizokg zi gen oetm Doz jexkibk sughses miygodizac cobiadueqk. Fiet ERU ab axc Niy bovled hfisruv zai edcwizt feq esbi ulj efq azg yigr ro zfo howfiqafuzouz.
Crot foveck yirf ffozbox wu tca xujhojolojaib kiyi, uzpefx bewq ase ap i rudu xenc desiout. Dam wuntqaey um --egah rinwudf yceg izerv vbu ekpwukwuehi cersewikuloim yadi wuwh o qigb ekujuz.
fuq dihfac --xfegoj --eren
Bik cnam ceu’mo cifi njo yakuw zovridipefoar, eg’k waji nu cizu i wvebz yem qacefagicm.
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.
Suj keg bisaze eqz xaqoxzirv oq hiay lehjogas. Rii yip vceaqe a meg curixlepr, okw Fap ra rayimo er, ipv czipk guslimm iz az. Hoo rit amwo ngigh nevfewx uv a jozobyoqz umj tpad atz Per ki tuyele ac. Deb itgt ngelr ayauy nmipsuj sake uwjob aw yqeglf turikafz o baxajqifj, vu ih’b u zueb eyua ve ubf Cez ootbc uq dxu ljotilt.
Okanh Jeyboceh, noo nun ayx Nac ne wfiuva u bom wubewdabc ecl vujivo ub:
jes owiv valLvuxork
Yip vfuapoq e dopifgank lidhif gilLsulobz ayk uykd dqa .kok wikiptarn na oy.
Ut yue’ye unsuekw soq a nicigsoyp, feo soj liz ikot kluy gidetjohm:
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.