Open navigation menu
Close suggestions
Search
Search
en
Change Language
Upload
Sign in
Sign in
Download free for days
0 ratings
0% found this document useful (0 votes)
119 views
2 pages
Git-Cheat-Sheet-Education - Git-Cheat-Sheet-Education
Uploaded by
asd
AI-enhanced title
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here
.
Available Formats
Download as PDF or read online on Scribd
Download now
Download
Save git-cheat-sheet-education - git-cheat-sheet-educat... For Later
Download
Save
Save git-cheat-sheet-education - git-cheat-sheet-educat... For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
0 ratings
0% found this document useful (0 votes)
119 views
2 pages
Git-Cheat-Sheet-Education - Git-Cheat-Sheet-Education
Uploaded by
asd
AI-enhanced title
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here
.
Available Formats
Download as PDF or read online on Scribd
Download now
Download
Save git-cheat-sheet-education - git-cheat-sheet-educat... For Later
Carousel Previous
Carousel Next
Download
Save
Save git-cheat-sheet-education - git-cheat-sheet-educat... For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
Download now
Download
You are on page 1
/ 2
Search
Fullscreen
Ceti ts) GIT CHEAT SHEET Git is the free and open source distributed version control system that's responsible for everything GitHub related that happens locally on your computer. This cheat sheet features the most important and commonly used Git commands for easy reference. INSTALLATION & GUIS ‘With platform specific installers for Git, GitHub also provides the ‘ease a staying up-to-date withthe latest releases ofthe command line tool wile providing a graphical user interface For day-to-day interaction, review, and repositary synchronization. GitHub for Windows hittps//windowsgithub.com GitHub for Mac https//macgithub.com For Linux and Solaris platforms, the latest release is available on the official Gitweb site, Giefor AlPlatforms Intp/feit-semeom ‘SETUP Configuring user information used across ll acalrepositories git contig --olobal user.nane “[firstnane lastnane]” set aname that is identifiable fr credit when review versionhistory git contig ~ lobal user.omail “[valid-emait]" set an email address that willbe associatedwith each history marker git config --global color.ui auto set automatic command line coloring for Git for easy reviewing ‘SETUP & INIT Configuring user information, initializing and cloning repositories git nie initialize an existing directory as aGit repository git clone Curt} retrieve anentire repository fram ahasted location via URL STAGE & SNAPSHOT Working with snapshots and the Git staging area ‘ott status, show modified files in working directory, staged for your next commit ‘git add [file] add afileasitlooks naw to your next commit (stage) git reset [file] unstage afile while retaining the changes in working directory git aiee diff of what is changed but not staged git diff --staged dif of whats staged but nat yet committed git comit [descriptive message)” commit your staged content as anew commit snapshot BRANCH & MERGE Isolating workin branches, changing context, and integrating changes. it branch listyourbranches. a will appear nextto the currently active branch ‘git branch [branch-name] create anewbranch at the current commit ‘git checkout ‘itch to another branch andcheckit autinto your working directory ‘git merge [branch] ‘merge the specified branch’ history into the current ane. ‘tt Log showall commitsinthe current branch's historyty) INSPECT & COMPARE SHARE & UPDATE Examining logs, cliffs and object information Retrieving updates from another repository andupdating local repos aft Log git remote add [alias] Curt] shaw the commit history for the currently active branch ‘adda git URLas an alias ‘git Log branchB. -branchA git fetch [alias] shaw the commits on branchA that are not on branchB fetch dow allthe branches from that Gitremote git log --follow [file] ‘git merge [alias]/[branch] show the commits that changed fie, even across renames. ‘mergea remote branch into your current branch tobringitup to date git diet branche. ‘branchA ‘git push [alias] [branch] show the diffof what isinbranchA thats natin branch Transmit local branch commits tothe remate repasitory bench git show [SHA] oit putt showany object Gitin human-readable format fetch and merge any commits from the trackingremote branch TRACKING PATH CHANGES REWRITE HISTORY Versioning file removes and path changes Revwritingbranches, updatingcommits and clearing history ott mm [eitey oft rebase [branch] delet the fle rom project and stage the removal for commit -pply any commits of currentbranch ahead specified one it mv [existing-pathn] [new-path] out reset --hard [comit] Fe eat tenon clear staging are, rerite working tree from specified commit git log --stat - showallcommitogs with indication of any paths that moved ‘TEMPORARY COMMITS Temporarily store mocifed tracked les inorder tochangebranches IGNORING PATTERNS ait stash Preventing unintentional tagingor commitingof files Save modified and staged changes Logs oft stash Use notes pattern*/ lst stack-order of stashed filechanges Savea file with desired patterns as gltignore with eitherdirectstring 92 StASH POP: matches or wildcard globs. write working from top of stash stack a1 config --global core.excludesfite [file] git stash drop system wide ignore patern fr alllocal repositories dliscard the changes fromtopof stash stack GitHub Education ‘Teach and learn better, together. GitHub is free for students and teach- 1
[email protected]
ers, Discounts available for other educational uses. © education github.com
You might also like
Quickref Me Git
PDF
No ratings yet
Quickref Me Git
3 pages
Git Cheat Sheet
PDF
No ratings yet
Git Cheat Sheet
2 pages
Git Cheat Sheet Education Git Cheat Sheet Education
PDF
No ratings yet
Git Cheat Sheet Education Git Cheat Sheet Education
2 pages
Git Cheat Sheet: Stage & Snapshot Installation & Guis
PDF
No ratings yet
Git Cheat Sheet: Stage & Snapshot Installation & Guis
2 pages
Git Cheat Sheet: Stage & Snapshot Installation & Guis
PDF
No ratings yet
Git Cheat Sheet: Stage & Snapshot Installation & Guis
2 pages
Git Cheat Sheet Education
PDF
No ratings yet
Git Cheat Sheet Education
2 pages
Git Cheat Sheet Education PDF
PDF
No ratings yet
Git Cheat Sheet Education PDF
2 pages
Git Cheat Sheet Education
PDF
50% (2)
Git Cheat Sheet Education
2 pages
Git Cheat Sheet Education
PDF
No ratings yet
Git Cheat Sheet Education
3 pages
Git Cheat Sheet
PDF
No ratings yet
Git Cheat Sheet
8 pages
Git Cheat Sheet
PDF
No ratings yet
Git Cheat Sheet
7 pages
GIT Cheat Sheet: $ Git Branch $ Git Logs
PDF
No ratings yet
GIT Cheat Sheet: $ Git Branch $ Git Logs
10 pages
Github Cheatsheet
PDF
No ratings yet
Github Cheatsheet
6 pages
Git Cheat Sheet: by Thesyntacticsugar
PDF
No ratings yet
Git Cheat Sheet: by Thesyntacticsugar
4 pages
Git and Github Commands 1719287860
PDF
No ratings yet
Git and Github Commands 1719287860
4 pages
Comandos Git
PDF
No ratings yet
Comandos Git
13 pages
GIT Cheat Sheet - : by Ganesh Kumar
PDF
No ratings yet
GIT Cheat Sheet - : by Ganesh Kumar
3 pages
GIT CheatSheet
PDF
No ratings yet
GIT CheatSheet
10 pages
Git Command Cheat Sheet & Quick Reference
PDF
No ratings yet
Git Command Cheat Sheet & Quick Reference
11 pages
GIT Cheat Sheet: $ Git Branch $ Git Logs
PDF
100% (1)
GIT Cheat Sheet: $ Git Branch $ Git Logs
10 pages
Git Cheat Sheet - CIRA Software Engineering Group
PDF
No ratings yet
Git Cheat Sheet - CIRA Software Engineering Group
2 pages
Git Cheat Sheet
PDF
No ratings yet
Git Cheat Sheet
11 pages
GITHUB
PDF
No ratings yet
GITHUB
38 pages
GIT- Basic Commands
PDF
No ratings yet
GIT- Basic Commands
4 pages
Git Cheatsheet
PDF
No ratings yet
Git Cheatsheet
1 page
CSE 390 "Lecture 11": Version Control With Git
PDF
No ratings yet
CSE 390 "Lecture 11": Version Control With Git
23 pages
Git Commands
PDF
No ratings yet
Git Commands
7 pages
_???? ?? ??? ???_1733953428
PDF
No ratings yet
_???? ?? ??? ???_1733953428
7 pages
Git & Github Cheatsheet: Creating Repo
PDF
No ratings yet
Git & Github Cheatsheet: Creating Repo
4 pages
Git Bash Cheat Sheet
PDF
No ratings yet
Git Bash Cheat Sheet
3 pages
Git Cheatsheet r2v1 PDF
PDF
No ratings yet
Git Cheatsheet r2v1 PDF
6 pages
Git Workshop
PDF
No ratings yet
Git Workshop
26 pages
Git & Github: Basics of Distributed Version Control
PDF
No ratings yet
Git & Github: Basics of Distributed Version Control
52 pages
Gitpresentation 140814102916 Phpapp01 160321215224
PDF
No ratings yet
Gitpresentation 140814102916 Phpapp01 160321215224
25 pages
Common Git Commands
PDF
No ratings yet
Common Git Commands
9 pages
Git Cheat Sheet: Make Changes
PDF
No ratings yet
Git Cheat Sheet: Make Changes
3 pages
Version Control With Git
PDF
No ratings yet
Version Control With Git
25 pages
?git Cheat Sheet
PDF
No ratings yet
?git Cheat Sheet
2 pages
Git Intro-Demo
PDF
No ratings yet
Git Intro-Demo
7 pages
390aGitIntro 12au
PDF
No ratings yet
390aGitIntro 12au
23 pages
Git Basic
PDF
No ratings yet
Git Basic
45 pages
Git Common Commands
PDF
No ratings yet
Git Common Commands
13 pages
Git Cheatsheet
PDF
No ratings yet
Git Cheatsheet
4 pages
GIT Cheatsheet
PDF
No ratings yet
GIT Cheatsheet
21 pages
Git&Github
PDF
No ratings yet
Git&Github
5 pages
Linus Torvalds For Linux Kernel Development
PDF
No ratings yet
Linus Torvalds For Linux Kernel Development
8 pages
Git Commands _ DataCamp
PDF
No ratings yet
Git Commands _ DataCamp
21 pages
git_cheat_sheet
PDF
No ratings yet
git_cheat_sheet
1 page
git-cheatsheet
PDF
No ratings yet
git-cheatsheet
6 pages
Git and Github Datasheet
PDF
100% (1)
Git and Github Datasheet
14 pages
Git and GitHub
PDF
No ratings yet
Git and GitHub
40 pages
Git
PDF
No ratings yet
Git
4 pages
Git Hub PDF Cheat Sheet
PDF
100% (1)
Git Hub PDF Cheat Sheet
2 pages
Git and Github Cheat Sheet
PDF
No ratings yet
Git and Github Cheat Sheet
2 pages