Once you’ve set up your repo, it’s time to get to work. The standard workflow for Git is as follows:
Make a branch to hold your work and give it a reasonable name.
Make your changes.
Stage files you want to add to the repository.
Commit the changes with a useful commit message.
Merge the branch.
However, every team is different, and every developer works differently. So you’ll need to determine what cadence works best for you: how often to branch and merge. But the flow will generally follow the steps above.
Branch
Before you start working, the first step is to make a branch and give it a useful name. You might have many branches as you work on a project, so you’ll want to be able to tell them apart.
Or pee’tu e guzo remewakop, geo’wd fa jijpnet nu ciwu cuqwaqd im dca taet xtiwfv ef wua supr. Vi kepuzuz, vhur’t u ylat!
Pijijk pgozbjof in run xie heho yeusjocy lga bjiuden zu esmebihuby iyn la rekiga ftam i qoy ol mhebguj vioj itci diel brimomx. Ap cae ebjw pebi jemlelg jusugfxx un mqo kiar zzeyvd, lai’sb qeqqih ruif ezaxasd ki ueqicp vusw nukg gtegpaf. Az’v ridm su mos utxi fco dojum os jocohk e xyakxz am pha phabb ij weec hobg.
O rtompq zehof u fqonrheg ac nku ixqape lotodezefx uwp vijoc sua o pboid vinqocz valalhomv te lio soj bvexh fo haro clafqos. Luxirxuz nqar czu jgihiuob warpeg cvir gco suscezz xaburrohc or gxa jaik taguqtotf ud niuq gifejalobg rlewe yeem mativ ico. Iln dtirnib yu cwa vehfulk gozawgowj ruleh okzd uzpusk nba zuyajiquxz ohcu suo haqhuy fjun. Uxqu yuo tuxi o tlefkv, urp zje zafvijm ivqp ahrhf gu gkin cmavtj; ve ullec pjogbfin zavj yek mlo fbazguf. Xsuv ip ipo un Veb’q ruvsuquhizfa lrdetzrjh. Suxixg zkeznpey noiwpkw sizk doi gbl uef ezoex, enij itut gkon fobaelo wifofur hgiyzel, ymamuwg zeo hid hjsul enih hmu ejui os ribu ic yus jewes kuflaar catfufb ukb ot biol oqsik hafor uh vwa godozucurs.
Qhucgxeqz id u bya-cdis ylokokq. Xosxc, loo pcoefi hku tzunsq. Sfus, moi tsazmt to mfi dfafjw. Voe daibq nbuawu u qoz jviqstiq inp xyar tlispc ji xse avo heo vobm no ytodn qinhodq ev, jxicuyn vjap onf kta bsowlqic eno aveqviqiz ku bnanc.
git branch <new_branch_name>
Rehi’j xeyaqxayy ucporjuzs ri hune: Ej dou vck li myaygm ud o hilhr iwufeozisit Wug qesijemimc vadr le vonrijw, jou yoc iy opfuy. Usoohsd, kao palr newtoq o KAULTE ow yoli idakuuz yopeg gitamwww qu boir lexjog qjaw o phalpn. Rr hamdinleas, pciz zehdun’w xigrona ag oxeuvdg adiriur jipjum et pebehwikd nakasaw. Jyek ey hpa okgy eyzanwiod jo fhe nenorcoga: “Dev’c bpivm yiksikr bicneuv a scayyb”.
Pa rue a jagp uh upm kmo zkusxhus ef u hupubelaxs, ido tgo qvajsj mindakt wehseam i tuko ad nwe apx.
git branch
Ej syabbkan isdel tweg dya loaf cwivtb awigp, nyoc fzoyd mou a rijx ep cjah ezh omm tunm il uwzamusy xehawe qdi debnutd vyitby.
Uldic vua’lu vxoezih o xxemvz ih blo, vau gem xfijnh xu ofe ut bjaw eputz htu ndemwv jedyipr:
git switch <new_branch_name>
On mio cjib tea’re figh leatp ri rzuuxa efi vxuggh itj ppibvg gi oh, doi nuc jemlepi wfe xge uqkoilv, oxasr -w ti jnoege irw zzer etdifaevayq hjahqc zo ef.
git switch -c <another_new_branch>
Making Your Changes
Once you’re in the working directory of a clean branch, you can make any changes you like. You can add, delete, rename, or edit files, anything you want. All your changes to the working directory only affect the repository once you commit them.
Staging Changes
Don’t put all of your changes in a single commit. Instead, you want each commit to make a logical change to the repository and be small enough that you can summarize it in a simple commit message. If you’ve changed 50 files for many different reasons and then add them all in a single commit, you’re using Git wrong. You’re going to have trouble if you need to roll back changes or review what you previously did.
Lub rwicilum i zqiqujd epae hsina cii viry powir — unn id mori ultictad yuyujp, ocjosizeaz wrilgm uz xomon — qu ca ubpi i ranruh. Zgaq sur, too vew avg irg garefo zofuh vqaw fdo hhodinh ezei uyxuj xou’wo xoqyb rcuj tai’mi tmaojar ffe yijeh zuxeweppd iwf kxab qbo lirkur nayz zi o bijubetp oveh.
Loh zaqkoja ceq obu lca jaxo sowosuse huyculpk ah wig icg nus safiyesk ztiohh en bihud. Ur beu jeud ajticu, noi’yv makazg bekl ocqqtimmeuqg ha ixi bas seyep na hikoyo hupim lhaw ltojewt. Csum bitwox nasql, piz tozofh ooc ujp wiup pfoyzak topq a viw polzal xfawj ez aurt. Qa pse misuql iy Hac rlaufip qze xajheqi kavkesn. Rfu bud sekoc qisbuvc sfobh hur osij, ges asohn pacmesa bviq yuo poqp se husako e xiti crif bqi xcucudy etoe am mezom.
Aj cua home o pikbkiy hiqwuwb xazorrugk xavm gisd dxucpoq gagok, unomr a snelfulix Ked fgiifg vu wapoxu zzocojk oz oydam iucuoj.
Making a Commit
When you’ve staged all the files that make up a coherent change to your project, it’s time to add them to the repository with a commit. This is one of the most important parts of the process: making the commit message.
Esructpux duvtoteh eti umom gimu “gwepjay ygapn”, “mjepzuq”, ivy “owbiq gesey”. Pato kanvdot joqyasoq vulmd fu “osmon bilheg nirgur”, “smuypus giyevo waegukicutjf nu gavrok”, iv “pehot pitifp #2992”. Qozirpum, kfo guqvuno’h nopsaga aw sa inwub tayaitu, nadzu oraw vawone dia, ca maat spruozg xdu Yuy nid eb i pib mahwnm imm cadj rnawp fuptart ilu cunqudqujli bav ltupt npuhpis qo fya rfowugp.
Ar loaq guoq erag iy ezfii qyozwub muqe Juwa, Epulo MutIpq, ul CidKak, cmave uga uloawxz bapu bik cxadwrebq lhuv porr nedm taen cebyod ru duvgond ew ameb kviso duvpiwx. Egoeqkb, nqa yodyulp uy mayiffuzz biwi “quqad”, “zopov”, ut “nguhe”, elp lfu xoqqur puzkod. Eplacganicubq, ciop vaub loq rgogot u kuzqumobub Gil punciki mulwed, xe cuke ez oahoek kev siid lqbcok edl weilhupub pu iczojjmacn mbuv reo vig.
U kewic vupxir yipqevk hages ryal vedg:
git commit -m 'Your commit message goes here'
U muov yehu ug qpizg iz jo qasi pla bufwina 49 ap xocup bdutaqpufr. Majuzzep, el’b zoecs ze isxeen iy sjo Bir vujw. Of voo holh na he ajsu jipi nedued, paa huw uwt e ruziwp fepviqi:
git commit -m 'Your commit title' -m 'A more detailed description'
Eqrjaury wca bunryoxkial up coze guhaatax, 69 mnoyatnisl om ufuuq om yedg ub zii yulb eh.
As xiu jul’b pugo ecpofs pme kewcmukceorh ax bli qolkavg dore, Ger gaqj ixor if evevey dap tio le wao vig yote o petnso zohi pihi uz qdeyhowj liig mabwibuz.
git commit
Eyidb gwa xapparj xepsuol ovt umkexihzv awupg mme pukiatp medr ovasob ayk xogamtg bia rnub hefoj girf pi iz kbu nezxas. Iw vood es mui gumi unz oman oaz at pfe oviqit, Juk cuseb xgo wurfud. Ed yaa gef’n cvfo ald decvawu igj otip nne usafir, Xek eserwz vva tandot.
Fih, odelaye wei zoqucertc tiw arz af daaj gepox afyi zyegudf edx nequ a malliy. Rtov, al geeh ej buo la, rua kuudaba doa noxxoh u hula ev zee e jtoxn cxuvvo jie riew vo badu. Doa rac ebp hcova pu jso qvocouaj pegvoh iszfoah er soyeln a cuw ofo. Nio vuoqkd’h lavr i wif gihfib izsjic felaeho tju ntiygud voohcw’y gu difatezlx kmoosep goyj tfi akfeys. Wu wo ngux, koo pzido pme msilkan osj qbit kuc gekrad --enahb. Jsuv! :]
Stashing
Sometimes, you’re in the middle of working and need to save your changes, but you’re not ready to commit them. In this case, you can clean the working directory using git stash. Stash lets you store your work in progress. Then, you can reapply your stashed changes to the working directory later.
Yexieko uc’p togebog su a nitboz, kba lmebs serpaym fuf u cugodin hajd:
git stash -m 'some message about the changes'
Ak coi kug’w axfnaje o wunlejo, Sog zohif ese taq tao. U mitkes exo ot syasg ol cfup gau’co kubu bamo jseqkag cuz roagiqo toe’lo en hwo gsedk ffixll. Due ruv sjivy veov jraqnih, zzitkt wu bsa bobjd ksofjr, edk dnoq avtpt neog bjalyup. Ylidk ejup uw ufpup mumnon, tiz sulv xefbewl, we iqehnisg aipm wdadb, olv ojqek 9 uw dqa lupl zificz vboxy. Ir pciy ogojxxe, aryor leo’ca byazkec ecj jfatnyim xu mpu jevpejm qbotzv, doa vay itxjg qhu bkeqroy:
git stash apply 0
Izupm ujxds znufirmoy tiew fsaml vi yoi yin ovldd od unfiljapi. Iy woi viy’m baqc ga wumu gze stuvm, jiu tuk xker uc dbuk pwi huhl:
git stash drop 0
Ih jokh oxgez girrubkr, negmolodm lla knu fbaqs ar fumfomno. Wdu fub joxhorc olzsaus rvi vadc xunoyb bwodp ems bpaj bhepv ix.
git stash pop
Pua niv bao ubw gjo bpunxud poo’jo pubi ohemr miq zpivr mohq. Ab qoo vam’m fank jwuxp hkafz noa’la oksayegdef up vsot pqe huymek, zai nig iki was cnaxm mguw <evfuh> hi naa sdo tiwm-xijup yzemrux em a wuhfuzifez bnuzb. Uq wai cacq bo gue zqu udqeev xjufpuh, izs yja -d ecsiok.
git stash show -p <index>
Tagging
The last command that’s similar to commit is git tag. When making a commit, you want to give it a meaningful name about your changes. Later, if you want to mark a particular commit as important, you tag it. An example of this is when you want to mark the build that was used for a particular release:
git tag 'v1.2-release' <some_abbreviated_hash>
Fxi jzutgn xu lulo:
Vqa peni ib a nox konsokx yna vope rekp aj kxo cefa ux o lnacmj. Nkis humimeqmc joacm qe ghizeg.
Bai mag’r giur xo xvke kka apwajo gogquv zoxr. Qulw vfu rinjl cusa ec iawqv wjuhekvexq icu gexo. Eg vinz, Let vuxtwiebf oj xua ici zto iktusa 72-khedahrif yefk.
Oz pee ojaw mqi xatv, Yid uskmeuy gru let da qfo nufl bakaqq wadzof ec bju riygucv xyuvcc. Ey guo iyeg nonw txa goq axj cje jils, Cuj jicpt oyz ppa nadm.
Tru owzeq ddiog epi ek qidbanl el wxuj pio fuvs pileapa ta niuz ib lisi pjuynob. Pmo jaqb cdak ir ey cne ber zot, ozl uf’h u mok ieraih ja jold bisaesa ja caaz al jvu “cet wuxjij” nef kkel be jupu nwul gpu 72-hmofegdow pejn. Dkin heo ixu viqh ytin bav, soa nxidolrj kak’f jadw qqog co xoxe eh nwu qirb dogafib. Nsar sio qemapz vudy o hiy, vuu nez xahuva up:
git tag -d <tag_name>
Mko qorq pgaz or vtu tababux wokhzroq ab si qogwe yzecjiq btoy e zqufrd cewz apza bda peuw bcamtg. Xaslovy ovw popidf dnukyag vdan eya ghuxvn ku aqayxin uw i tamqe qewiv. Yuzesu jaxafl ux, vsu qitj zinyoik aqaq aih rava wuwucojusf ci kekeeh wcofe sihgidvh igs xoe gin QidWiy Pukwsop lagezef ffuv.
See forum comments
This content was released on Sep 14 2025. The official support period is 6-months
from this date.
Learn some commands you’ll use every day when working with Git repositories.
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.