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)
28 views
7 pages
Git Cheatsheet - James Gibbard's Workshop
Uploaded by
Technical Novice
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
Save
Save Git Cheatsheet – James Gibbard's Workshop For Later
Share
0%
0% found this document useful, undefined
0%
, undefined
Print
Embed
Report
0 ratings
0% found this document useful (0 votes)
28 views
7 pages
Git Cheatsheet - James Gibbard's Workshop
Uploaded by
Technical Novice
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
Carousel Previous
Carousel Next
Download
Save
Save Git Cheatsheet – James Gibbard's Workshop For Later
Share
0%
0% found this document useful, undefined
0%
, undefined
Print
Embed
Report
Download
Save Git Cheatsheet – James Gibbard's Workshop For Later
You are on page 1
/ 7
Search
Fullscreen
41302019 {Git Cheatsheet - James Gibbare's Workshop Git Cheatsheet 8 2018-01-21 (httpsi/wwwgibbard.me/git/) & James Gibbard (https://www.gibbard.me/author/james- gibbard/) @ Computers (https://wwwgibbard.me/category/computers/) Dear future self, if you are reading this it looks like you have forgotten how to do something in Git again... Don’t worry, it happens; this page has been created just for you! Creating and cloning a repository Clone an existing repository from a URL git clone https://urlToRepo..com/repoNane.git Clone an existing repository from a file and checkout a specific branch git clone /path/to/repo/repoName.git -b branchNane Set up a new git repository in the current directory git init Staging files Stage all new, modified, and deleted files git add -A Stage all modified and deleted files but not new (untracked) ones git add -u itpsawww gidbare meg419072019 {Git Cheatsheet — James Gibbard's Workshop N.B. In git version 2.0 onwards git add -A and git add -u will operate on the entire working tree and not just the current path. Stage a specific file or set of files git add path/to/filer.txt File2.txt N.B. In git version 1.x using git add
will only add new and modified files within the specified path-spec. From version 2.0 onwards git add
will also stage files that have been deleted within the path-spec. Stage new and modified files in a specific directory (and deleted files in git version 2.x+) git add path/to/dir Stage new, modified, and deleted files in a specific directory (in version 1.x) git add -A path/to/dir Delete a file and stage the change in git git rm path/to/file.txt Delete a directory and its contents and stage the change in git git rm -r path/to/dir Committing ‘Commit staged files with a short commit message git commit -m "Commit message” ‘Commit stages files with a custom author itpsawww gidbare meg41302019 {Git Cheatsheet - James Gibbara's Workshop git commit --author="John Doe
" -m "Commit message” Viewing repository status View status of repository git status View abbreviated status of the repository git status -s The left column is the status of files in the staging area and the right column is the status of files in the working tree. M = Modified, A = Added, D = Deleted, R = Renamed, ? = Untracked files. Viewing repository history Show the last 10 commit logs git log -n 10 Show commit logs in a text graph format, eit log --graph Undoing mistakes Change the last commit message git commit --amend Change the author of the last commit itpsawww gidbare meg air41302019 {Git Cheatsheet - James Gibbara's Workshop git commit --amend --author="John Doe
" -m "Commit message" Branches Create a new branch and switch to it git checkout -b name_of_new_branch List all branches (including remote branches) git branch -: Checkout an existing branch git checkout name_of_existing branch Delete a branch git branch -d name_of_branch Remove local remote tracking branches that have been removed on the remote repository git renote prune origin Git Ignore The gitignore file specifies files that you don't what to include as part of your git repository itpsawww gidbare meg air41302019 {Git Cheatsheet - James Gibbara's Workshop 4 Ignore .bak files in all directories * bak 4 Ignore any files in a log/ directory log/ # Tgnore log/*.txt (but not log/foo/*. txt Log/*.txt 4# Ignore all .txt Files in a log directory on any of its sub directories Log/**/*. txt Git Configuration Set the committer name and email address globally git config --global user.nane “John Doe" git config --global user.email john@doe.com Set the committer name and email address for the current repository git config user.nane “John Doe" git config user.enail john@doe.com Set the default text editor to nano git config --global core.editor "nano" Share this: ‘(https gibbard.me/giv/2share=twitter&nb=1) Ej (https: /wwwen gibbard.me/git/?share=facebook&inb=1) G+ (hetps://wmw gibbard.me/git/?share=google-plus-1&nb=1) itpsawww gidbare meg onaon019 Git Cheatsheet James Gibarts Workshop (htpsiwmwgibbard.mertag/computers!) 6 (htpsv/www gibbard me/tag/git {nctps/tenwgibbard.mertag/software/) (https gibbard.me/tag/software-development/) (https/wwew gibbard.me/tag/software-engineering/) LEAVE A REPLY Enter your comment here... Using Git Offline (https://mwwgibbard.me/using-git-offline/) Cascaded integrator-comb (CIC) filters > (https://mmw.gibbard.me/cic-fiters/) Search. RECENT POSTS Cascaded integrator-comb (CIC) filters (https://www.gibbard.me/cic-filters/) Git Cheatsheet (https://www.gibbard.me/git/) Using Git Offiine (https://wwnw gibbard.me/using-git-offline/) Building a Robotic Arm—Part 2 (https://www.gibbard.me/building-a-robotic-arm-part-2/) Building a Robotic Arm—Part 1 (https://www.gibbard.me/building-a-robotic-arm-part-1/) Strandbeest Model (https://www.gibbard.me/strandbeest-model/) One Day Builds— Enigma Machine Emulator (https://www.gibbard.me/one-day-bullds-enigma- machine-emulator/) ‘One Day Builds—FPGA Pong (https:/Awww. gibbard.me/one-day-builds-fpga-pong/) Beginners Guide to I2¢ (https://www.gibbard.me/beginners-guide-toi2c/) Cheap LED Torch Repair (https://www.gibbard.me/cheap-led-torch-repair/) itpsww.gidbare mel en41302019 Git Cheatsheet — James Gibbare's Workshop TAGS (nttps:/iwenn.gibbard.me/tag/arduino/) (https:/hwen.gibbard.me/tag/bluetooth/) (https/iwww gibbard.me/tag/computers/) Di (hitps:/www.gibbard.me/tag/diy/) (nttps:viwww gibbard.me/tagyelectronics/) (nitpsviwww gibbard.me/tag/tfpgaN) (nttps:/imw gibbard. meltag/frisbee/) (https//wwwgibbard.me/tag/games/) (https:rtwwwgibbard.me/tag/giv) {https://wwvwgibbard.me/tag/hardware/) (https:stwww gibbard.me/tag/kindle/) (http://www gibbard.me/tag/microcontrollers/) (https:stwww gibbard.me/tag/one-day-build/) (oetps:/Awe gibbard. me/tag/passwords/) {https://wwwgibbard.me/tag/programming/) (ottps:/Amwwgibbard.me/tagyrepair/) {https:i/wwwgibbard.me/tag/robatics/) (huups:/imww gibbard.me/tag/security/) (http://www gibbard.me/tap/software/) (https:/iwww gibbard.me/tag/software-developmenti) (https://mww gibbard.me/tag/software-engineering/) (https:z/mww gibbard.me/tagyteardown/) (nttps:/iwn gibbard.me/tag/techy) (http://www gibbard.me/tag/tutorial) (https:/wwew.gibbard.me/tagivndl/) (https:/twww gibbard.me/tag/wind-energy/) CATEGORIES Electronics (https://www.gibbard.me/category/electronics/) 9 Computers (https://www-gibbard.me/category/computers/) 5 Uncategorized (https://www.gibbard.me/category/uncategorized/) 1 (HTTPSi/GITHUB.COM/GIBBARD) (HTTPS: WWW. YOUTUBE.COM/C/JAMESGIBBARD#20) Copyright © 2017 James Gibbard - Theme by Colorlib (http://colorlib.com/ Powered by WordPress (http://wordpress.org/) itpsiww.gidbare mel oo
You might also like
Quickref Me Git
PDF
No ratings yet
Quickref Me Git
3 pages
The Arm Performance Cookbook A Game-Changer For SoC Designers - Corporate and Culture - Cadence Blogs - Cadence Community
PDF
No ratings yet
The Arm Performance Cookbook A Game-Changer For SoC Designers - Corporate and Culture - Cadence Blogs - Cadence Community
7 pages
Git Cheat Sheet
PDF
100% (1)
Git Cheat Sheet
1 page
Git Commands Cheat Sheet by PhoenixNAP
PDF
No ratings yet
Git Commands Cheat Sheet by PhoenixNAP
1 page
Git Cheat Sheet: by Thesyntacticsugar
PDF
No ratings yet
Git Cheat Sheet: by Thesyntacticsugar
4 pages
Git Cheatsheet
PDF
No ratings yet
Git Cheatsheet
5 pages
Github Cheatsheet
PDF
No ratings yet
Github Cheatsheet
6 pages
Git Cheat Sheet Education
PDF
50% (2)
Git Cheat Sheet Education
2 pages
GIT CheatSheet
PDF
No ratings yet
GIT CheatSheet
10 pages
GIT Cheat Sheet: $ Git Branch $ Git Logs
PDF
100% (1)
GIT Cheat Sheet: $ Git Branch $ Git Logs
10 pages
GIT - DevOps
PDF
No ratings yet
GIT - DevOps
11 pages
Git Cheatsheet PDF
PDF
100% (1)
Git Cheatsheet PDF
2 pages
Git Github PDF
PDF
No ratings yet
Git Github PDF
77 pages
Git Cheat Sheet - CIRA Software Engineering Group
PDF
No ratings yet
Git Cheat Sheet - CIRA Software Engineering Group
2 pages
Git Cheat Sheet Education
PDF
No ratings yet
Git Cheat Sheet Education
3 pages
GIT Cheat Sheet - : by Ganesh Kumar
PDF
No ratings yet
GIT Cheat Sheet - : by Ganesh Kumar
3 pages
Precedence) : /etc/gitconfig - System Git Config /.gitconfig - Global .Git/config .Git/config /etc/gitconfig
PDF
No ratings yet
Precedence) : /etc/gitconfig - System Git Config /.gitconfig - Global .Git/config .Git/config /etc/gitconfig
5 pages
Git Cheat Sheet: Install & Update Git Track Changes
PDF
No ratings yet
Git Cheat Sheet: Install & Update Git Track Changes
2 pages
A Git Cheat Sheet (Git Command Reference) - A Git Cheat Sheet and Command Reference
PDF
No ratings yet
A Git Cheat Sheet (Git Command Reference) - A Git Cheat Sheet and Command Reference
14 pages
Git Cheat Sheet
PDF
No ratings yet
Git Cheat Sheet
7 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
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
A Cheat Sheet For GIT
PDF
No ratings yet
A Cheat Sheet For GIT
16 pages
Git Cheat Sheet Education PDF
PDF
No ratings yet
Git Cheat Sheet Education PDF
2 pages
Git Basic
PDF
No ratings yet
Git Basic
45 pages
Git Cheatsheet
PDF
No ratings yet
Git Cheatsheet
1 page
Git Command Cheat Sheet & Quick Reference
PDF
No ratings yet
Git Command Cheat Sheet & Quick Reference
11 pages
Gittutorial (7) Manual Page: The Git User S Manual
PDF
No ratings yet
Gittutorial (7) Manual Page: The Git User S Manual
12 pages
?git Cheat Sheet
PDF
No ratings yet
?git Cheat Sheet
2 pages
Git Cheat Sheet
PDF
No ratings yet
Git Cheat Sheet
4 pages
Git Cheatsheet
PDF
No ratings yet
Git Cheatsheet
1 page
Git and Github Commands 1719287860
PDF
No ratings yet
Git and Github Commands 1719287860
4 pages
CAN-Bus - The Protocol - David Bortolami - Altium
PDF
No ratings yet
CAN-Bus - The Protocol - David Bortolami - Altium
14 pages
Achieve PCIe Compliance and Interoperability in Your IP Core-Based Design - Joshua Filliater - Embedded
PDF
No ratings yet
Achieve PCIe Compliance and Interoperability in Your IP Core-Based Design - Joshua Filliater - Embedded
4 pages
A Different Take On Asserts - Jack Ganssle - Embedded
PDF
No ratings yet
A Different Take On Asserts - Jack Ganssle - Embedded
5 pages
Function Pointers, Part 3 - State Machines - Jacob Beningo - EDN
PDF
No ratings yet
Function Pointers, Part 3 - State Machines - Jacob Beningo - EDN
10 pages
GIT Cheat Sheet: $ Git Branch $ Git Logs
PDF
No ratings yet
GIT Cheat Sheet: $ Git Branch $ Git Logs
10 pages
Git Cheat Sheet
PDF
No ratings yet
Git Cheat Sheet
8 pages
A Wrapper of PCI Express With FIFO Interfaces Based On FPGA - Hu Li - Yuan'an Liu - Dongming Yuan - Hefei Hu
PDF
No ratings yet
A Wrapper of PCI Express With FIFO Interfaces Based On FPGA - Hu Li - Yuan'an Liu - Dongming Yuan - Hefei Hu
5 pages
FPGA Implementation of A Convolutional Neural Network For Wake Up Word Detection - Project Assignment - Ole Martin Skafsa - NTNU
PDF
No ratings yet
FPGA Implementation of A Convolutional Neural Network For Wake Up Word Detection - Project Assignment - Ole Martin Skafsa - NTNU
120 pages
Git Cheat Sheet Education
PDF
No ratings yet
Git Cheat Sheet Education
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 Github Basics
PDF
No ratings yet
Git Github Basics
63 pages
How To Implement A Simple Circular Buffer in C - A Guide To Implementing A Circular Buffer of Integers, Programmed in C - Charles Dobson - Medium
PDF
No ratings yet
How To Implement A Simple Circular Buffer in C - A Guide To Implementing A Circular Buffer of Integers, Programmed in C - Charles Dobson - Medium
9 pages
GIT Cheatsheet
PDF
No ratings yet
GIT Cheatsheet
21 pages
Function Pointers, Part 2 - Task Scheduling - Jacob Beningo - EDN
PDF
No ratings yet
Function Pointers, Part 2 - Task Scheduling - Jacob Beningo - EDN
3 pages
How To Realize Multi-Function LCD Display Controller Based On FPGA - FPGAKey
PDF
No ratings yet
How To Realize Multi-Function LCD Display Controller Based On FPGA - FPGAKey
5 pages
Arieljgs Git Cheat Sheet
PDF
No ratings yet
Arieljgs Git Cheat Sheet
4 pages
Trusted Base System Architecture For Armv8-A - Document Number DEN 0021F Release Number 0 - Arm
PDF
No ratings yet
Trusted Base System Architecture For Armv8-A - Document Number DEN 0021F Release Number 0 - Arm
71 pages
Embedded Processors On FPGA: Soft Vs Hard: Vivek Jayakrishnan
PDF
No ratings yet
Embedded Processors On FPGA: Soft Vs Hard: Vivek Jayakrishnan
8 pages
The Embedded Interviews 2018 - Element14
PDF
No ratings yet
The Embedded Interviews 2018 - Element14
28 pages
USB Background - TOTALPHASE
PDF
No ratings yet
USB Background - TOTALPHASE
21 pages
Getting Started With Git - Cheatsheet - Java Code Geeks
PDF
No ratings yet
Getting Started With Git - Cheatsheet - Java Code Geeks
8 pages
Usb Device Drivers - Alessandro Rubini - Linux Magazine
PDF
No ratings yet
Usb Device Drivers - Alessandro Rubini - Linux Magazine
7 pages
Gitpresentation 140814102916 Phpapp01 160321215224
PDF
No ratings yet
Gitpresentation 140814102916 Phpapp01 160321215224
25 pages
Using Git Offline - James Gibbard's Workshop
PDF
No ratings yet
Using Git Offline - James Gibbard's Workshop
6 pages
8 Tips For Squashing Bugs Using ASSERT in C - Jacob Beningo - EDN
PDF
No ratings yet
8 Tips For Squashing Bugs Using ASSERT in C - Jacob Beningo - EDN
5 pages
Introduction To Git - John Troon
PDF
No ratings yet
Introduction To Git - John Troon
13 pages
Git and Github Basics
PDF
No ratings yet
Git and Github Basics
21 pages
Git Bash Cheat Sheet
PDF
No ratings yet
Git Bash Cheat Sheet
3 pages
Git Basic
PDF
No ratings yet
Git Basic
4 pages
9 Reasons Why The Vivado Design Suite Accelerates Design Productivity - Xilinx Backgrounder
PDF
No ratings yet
9 Reasons Why The Vivado Design Suite Accelerates Design Productivity - Xilinx Backgrounder
11 pages
Automotive Embedded Question - Rasmi Ranjan Nayak
PDF
No ratings yet
Automotive Embedded Question - Rasmi Ranjan Nayak
30 pages
Amazon Interview Questions - TopTalent
PDF
No ratings yet
Amazon Interview Questions - TopTalent
5 pages
Git Init: Dddddddssssopen Gitbash Create A New Repository Using Mkdir Command For Github, Gitrepos, and Titan
PDF
No ratings yet
Git Init: Dddddddssssopen Gitbash Create A New Repository Using Mkdir Command For Github, Gitrepos, and Titan
39 pages
Automotive Embedded Questions
PDF
No ratings yet
Automotive Embedded Questions
9 pages
Embedded Interview questions - గెల్లి ఫణింద్ర విశ్వనాధ ప్రసాదు
PDF
No ratings yet
Embedded Interview questions - గెల్లి ఫణింద్ర విశ్వనాధ ప్రసాదు
4 pages
Embedded Interview Questions
PDF
No ratings yet
Embedded Interview Questions
12 pages
Git Cheatsheet
PDF
No ratings yet
Git Cheatsheet
6 pages
(Git Notes) - TheTestingAcademy (Pramod Sir)
PDF
No ratings yet
(Git Notes) - TheTestingAcademy (Pramod Sir)
21 pages
2023 - 01 - 07 - Mike-Zr - Git-And-Github
PDF
No ratings yet
2023 - 01 - 07 - Mike-Zr - Git-And-Github
2 pages
Linux Device Driver, Embedded C Interview Questions
PDF
No ratings yet
Linux Device Driver, Embedded C Interview Questions
35 pages
Chapter 1 - Version Control With Git
PDF
No ratings yet
Chapter 1 - Version Control With Git
42 pages
InterviewExperiences2013 2014
PDF
No ratings yet
InterviewExperiences2013 2014
12 pages
Nvidia
PDF
No ratings yet
Nvidia
1 page
Nutanix
PDF
No ratings yet
Nutanix
1 page
What Mathematics Education May Prepare Students Fo
PDF
No ratings yet
What Mathematics Education May Prepare Students Fo
19 pages