Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
53 views

Code Basics - Github Tutorial

This document provides a 3-sentence summary of the Git basics document: Git is a version control system that allows tracking changes to code. It explains basic Git commands like add, commit, push, status, diff and checkout. Branches can be created, merged, and deleted to work on features independently from the master branch.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
53 views

Code Basics - Github Tutorial

This document provides a 3-sentence summary of the Git basics document: Git is a version control system that allows tracking changes to code. It explains basic Git commands like add, commit, push, status, diff and checkout. Branches can be created, merged, and deleted to work on features independently from the master branch.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

Cit Basics-age

Code Balco ] Git/4ithub To/trial

t iGt Basic Couuas


Cxeat a nw Tcpo
b o d e to tis seto
Go oeY these cit Comwands
) Git add
g i t Commit
)aitpus
v) ait dittoo

*Come po to local d

g t tetus
i add hungry y
q t Commit -m Addad humgry y e
$gitbush

ait difL Aoo HEAD

4
to cloe (viedtoy

thcloiM /lere stwg Cesettw code chawges


ait checiout hunpypy (To undo parrticula
chaugcsi Ale)
i t checeut- To uMdo all chauged

ait EXEEt Cowib id To Uwdp Cowwttcc


Cowwi Re eNE chauas) chauae)

a i t u t -n Cowt id > (To undo Cowwtt


Dot cowwite eet CWauaei-wi
cVavas chawaskng
uucowm.tc)

P t chovaes ug gitsteet
4 at t --hod CowMit_idz
(RAgt at to sptafic Cowit id)
BaMChesCcate, Merqe Detee ca brauch)

wasitrdefult oremc whiLe Cscataqsepo

4 qit bkucM thsty Tuis Csedis a new bsauc


Ca llec thirsty)
a t bíay ch Tosce all banc hes)
git checout hirsty(This will cwnte oauc
t newk Catcd usty
bsanch

ait chectout masAe

4at me rae tsty Mastr

ies

Wate

ThNsty

4qit yeh -Rt-upsbeam iqi tunety


(To y sty c to ajthulo cto)
Dele biI

qit chec Kout-b dumoy Bot Cxeale &


checko SducM

qit bkucyd dummy

(T What is HEAD

HEAD 5 a sehveML to h wlost ecent


Cowit CUent bsac M WoSt oF
Cases

4 at dit boo cowwut1 <owmt 2>

4 oit dtolHEAD 2 HEADN1

WhuwMHEAD dorsMtpo it tp wost CCeMt


CoIt o qoMD detachac HEADtte
* lo qo detached a c u a Cowuk_icd
be s uYt tceM

qitchecEoulE LOWItd>

$git checkouE wMai To Come out of detcho


ctae

3 DiG Monae uGIn Meld

) Mstal| wie
) DiE (qit diit tool)
(n) Merac ( ait mtraetool

Mad is a Wode edite a sepla ce fo[ AhM


BeReUSu wld e haue to c tiquYe it

diff tool"ued
ath C/Propa las (R)Ma wold
Mel.eeo
diCt kool
yewlptefalse
$ git difttool osicinl wmaste Dif. M emo
local bach

4git difHol Cuow chanaes W uy Cowwwtkd


cMCuges & HEAD

ait diEboolt iwdiE (T uc eecific-


difftool)
E
How to sesolte wusae LOMfu
E
E

tool ved
[mueptoo eld
bat C
wwgtool
Leeb bacEup alse

4 qit mgíae ool

Letal chong Loca i


Your) (MertcWoss) Usttaw fe(1e.
qthub

You might also like