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
Dostları ilə paylaş: