Git cheat sheet



Yüklə 83,28 Kb.
Pdf görüntüsü
səhifə2/3
tarix29.11.2023
ölçüsü83,28 Kb.
#140295
1   2   3
GitHub - GIT CHEAT SHEET

INSTALLATION & GUIS
With platform specific installers for Git, GitHub also provides the 
ease of staying up-to-date with the latest releases of the command 
line tool while providing a graphical user interface for day-to-day 
interaction, review, and repository synchronization.
GitHub for Windows
h
tt
ps://windows.github.com
GitHub for Mac
h
tt
ps://mac.github.com
For Linux and Solaris platforms, the latest release is available on 
the o

cial Git web site.
Git for All Platforms
h
tt
p://git-scm.com


education@github.com
education.github.com
Education
Teach and learn be
tt
er, together. GitHub is free for students and teach-
ers. Discounts available for other educational uses.
Teach and learn be
tt
er, together. GitHub is free for students and teach-
ers. Discounts available for other educational uses.
SHARE & UPDATE
Retrieving updates from another repository and updating local repos
git remote add [alias] [url]
add a git URL as an alias
git fetch [alias]
fetch down all the branches from that Git remote
git merge [alias]/[branch]
merge a remote branch into your current branch to bring it up to date
git push [alias] [branch]
Transmit local branch commits to the remote repository branch
git pull
fetch and merge any commits from the tracking remote branch
TRACKING PATH CHANGES
Versioning file removes and path changes
git rm [file]
delete the file from project and stage the removal for commit
git mv [existing-path] [new-path]
change an existing file path and stage the move
git log --stat -M
show all commit logs with indication of any paths that moved

Yüklə 83,28 Kb.

Dostları ilə paylaş:
1   2   3




Verilənlər bazası müəlliflik hüququ ilə müdafiə olunur ©www.genderi.org 2024
rəhbərliyinə müraciət

    Ana səhifə