You are on page 1of 2
commit Working Directory Rye Seliy4 (index) reset [commit] Create a Repository From scratch Create a newiocal repostony 8 git Ante (project mane) ‘onnlaas rom an essing rpastane Sgt clone wy. uel Observe your Repository Lstrewor moxie not yee conte 3 git state Show the cargestofles nt yet aged agit ate Show the cargesto stage les B git dite cached Showa staged and unatages ie cranes. Sgie aiee map ‘haw the charges between tao comm Sale dite comitt comit2 sto change dates and authors foratie git blame (80 Show the fle changes for commit igangior te 5 git ow (const): (Ate) Shaw ful change isxry Sait tog Show change Wty or efector, including ite git log -P (aie/atzectory) Working with Branches Use acl branches 6 att branch List ovanches, act and emote 6 git beencn av ‘tent. ranchy mya, aed pte wore directory 2 git checkout my branch reste anew branch eatesrew brareh 6 gat branch ow branch Delete the branch called ny bene § git Bench -d ay. branch Mergebrarch arto branch b 8 git checkout beanch 8 git marge branch = Teahe curren comme Sait tag my tag Make a change stages re le, ead for commit 5 ot aa (ate) Stage al changed fs 3 fo commit eat aad. Committ staged fies to versione history § git commit -m “comit message” Committ your vache les t0 ‘ersored story Sait commit -an “commit message’ LUnstages le, keeping the fe changes § git reset (fle) Revert everyrirgto the ast cont § git reset hard synchronize Gere ae rages om gn rome att tates Feththe ate hogs rom orig cede # oie pa Fexhhe ate sarge rom rn prarence git pall —rebace Pushloclcangestathe ago 8 ott psn Finally! renin coubt we strep 8 ait comand =-neip

You might also like