SlideShare una empresa de Scribd logo
1 de 41
GETTING GIT
…before it gets you
HOW TO BE GOTTEN
 I am ‘notmessenger’ in most networks and
notmessenger.com/contact has the rest of the ways to find me
WHAT IS IT?
IT’S THE NEW HOTNESS!
 Source code management system
 Version control
 and …. Distributed!
DISTRIBUTED?
 There is no central server where your repository must be
maintained
 Also referred to as being “Decentralized”
 Everything you need to maintain a repository is already on your
local machine (once you have installed Git)
KEY CONCEPTS
REMEMBER THESE!
 Distributed
 Staging Area
 …or Index
 …or Cache
 …or Directory cache
 …or Current directory cache
 …or Staged files
STAGING AREA
WHERE GIT EXCELS
MORE AWESOMENESS!
 Branches
 Merging
 Stashes
COMMANDS
INIT
 Create a new repository
 Can be empty directory
 Can be existing codebase
 Example:
> git init
CONFIG
 Manage configuration
 Example:
> git config --global user.name ‘Jeremy Brown’
> git config --global user.email ‘jeremy@notmessenger.com’
STATUS
 Display the state of your codebase
 Has anything been modified or staged since the last commit?
 Example:
> git status
DIFF
 Show diff between states of codebase
 Example:
> git diff <filename>
ADD
 Start tracking new files
 Stage changes to already-tracked files
 Example:
> git add .
> git add NEWFILE
> git add ALREADY_EXISTENT_FILE
COMMIT
 Record the snapshot of your staged content
 Example:
> git commit
> git commit -m “Commit message”
> git commit -a
> git commit -am “Commit message”
LIVE DEMO
COLLABORATION
 Git doesn’t have a central server, such as how SVN or others do
 You collaborate by synchronizing with other repositories
 There is no real difference between a server and client – a Git
repository is a Git repository and you can synchronize between
any two easily
MORE COMMANDS
CHECKOUT
 Checkout a branch from a remote repository to working directory
 Example:
> git checkout <branchname>
FETCH
 Download new branches and data from a remote repository
 Is a separate copy of the data from the remote repository – it is
not merged with your local working copy
 Can then look through new commits, view logs, etc
 Example:
> git fetch
> git fetch [alias]
> git fetch --all
PULL
 First issues a FETCH command and then a MERGE command
 Example:
> git pull
> git pull [alias]
> git pull --all
PUSH
 Push your new branches and data to a remote repository
 If someone else has pushed since the last time you fetched and
merged the Git server will deny your push until you are up to date
 Example:
> git push [alias] [branch]
REMOTE
 List, add and delete remote repository aliases
 Example:
> git remote
> git remote add [alias] [url]
> git remote rm [alias]
BRANCH
 List, create or delete branches
 Example:
> git branch
> git branch <branchname>
> git branch –d <branchname>
MERGE
 Merge any branch into the current branch
 Example:
> git merge <branchname>
> git merge --no-commit <branchname>
STASH
 Takes the dirty state of your working directory and saves it on a
stack of unfinished changes that you can reapply at any time
 Example:
> git stash
> git stash list
> git stash apply <stashname>
> git stash drop <stashname>
LIVE DEMO
GUI TOOLS
MAKE YOUR LIFE EASIER
 GitHub for Mac/Windows/Eclipse/Mobile
 Git Tower
 Gitbox
 GitX
 SmartGit
DEMO OF GIT TOWER
CODE MANAGEMENT
STRATEGIES
HOW IS GIT GOING TO GET
YOU?
LOOKOUT!
 A few of the differences between it and previous generations of
SCMs
 The index (or stage)
 Distributed
 Commit history
 Git is the new hotness and is being used (virtually) everywhere
GOT IT?
RESOURCES
 git-scm.com
 git-tower.com
 github.com/nvie/gitflow
IMAGE CREDITS
 Slide 1 - joecrazy.com/wp-content/uploads/2012/05/14.jpg
 Slide 5 - jpegy.com/images/uploads/2012/03/battleshots.jpg
 Slide 9 - learn.github.com/images/staging.png
 Slide 11 - moustachemadness.files.wordpress.com/2012/02/handlebar-
moustache.jpg

Más contenido relacionado

La actualidad más candente

La actualidad más candente (19)

Git vs svn
Git vs svnGit vs svn
Git vs svn
 
Git Workshop
Git WorkshopGit Workshop
Git Workshop
 
Version Control Systems with git (and github) as an example
Version Control Systems with git (and github) as an exampleVersion Control Systems with git (and github) as an example
Version Control Systems with git (and github) as an example
 
Understanding about git
Understanding about gitUnderstanding about git
Understanding about git
 
Subversion to Git Migration
Subversion to Git MigrationSubversion to Git Migration
Subversion to Git Migration
 
SVN 2 Git
SVN 2 GitSVN 2 Git
SVN 2 Git
 
Git training
Git trainingGit training
Git training
 
Git vs Subversion: ¿Cuando elegir uno u otro?
Git vs Subversion: ¿Cuando elegir uno u otro?Git vs Subversion: ¿Cuando elegir uno u otro?
Git vs Subversion: ¿Cuando elegir uno u otro?
 
Git
GitGit
Git
 
git- Most Of The Things About a Trending DVCS
git- Most Of The Things About a Trending DVCSgit- Most Of The Things About a Trending DVCS
git- Most Of The Things About a Trending DVCS
 
Linux Backup System using rsync, tar, gzip
Linux Backup System using rsync, tar, gzipLinux Backup System using rsync, tar, gzip
Linux Backup System using rsync, tar, gzip
 
Advanced Web Development in PHP - Code Versioning and Branching with Git
Advanced Web Development in PHP - Code Versioning and Branching with GitAdvanced Web Development in PHP - Code Versioning and Branching with Git
Advanced Web Development in PHP - Code Versioning and Branching with Git
 
Knolx master-slides
Knolx master-slidesKnolx master-slides
Knolx master-slides
 
Install git and drush on Godaddy shared hosting
Install git and drush on Godaddy shared hostingInstall git and drush on Godaddy shared hosting
Install git and drush on Godaddy shared hosting
 
Introduction to Octopress at DRUG
Introduction to Octopress at DRUGIntroduction to Octopress at DRUG
Introduction to Octopress at DRUG
 
Git workshop
Git workshopGit workshop
Git workshop
 
Android Libs - Retrofit
Android Libs - RetrofitAndroid Libs - Retrofit
Android Libs - Retrofit
 
Cse 241
Cse 241Cse 241
Cse 241
 
Linux server backup solution
Linux server backup solutionLinux server backup solution
Linux server backup solution
 

Destacado

Updating Your GivingFirst.org Profile
Updating  Your  GivingFirst.org  ProfileUpdating  Your  GivingFirst.org  Profile
Updating Your GivingFirst.org Profile
Bryce Wilkinson
 
8 7 Nrbb Flow
8 7 Nrbb Flow8 7 Nrbb Flow
8 7 Nrbb Flow
websolve
 
A E A Introduction P D F Colombia
A E A  Introduction  P D F  ColombiaA E A  Introduction  P D F  Colombia
A E A Introduction P D F Colombia
jbauzo
 
Waardeverkenner
WaardeverkennerWaardeverkenner
Waardeverkenner
Atrivé
 
Library questionnairewebinar7 2010
Library questionnairewebinar7 2010Library questionnairewebinar7 2010
Library questionnairewebinar7 2010
Sue Bennett
 

Destacado (20)

Updating Your GivingFirst.org Profile
Updating  Your  GivingFirst.org  ProfileUpdating  Your  GivingFirst.org  Profile
Updating Your GivingFirst.org Profile
 
anteprima del nuovo catalogo di integratori GJAV
anteprima del nuovo catalogo di integratori GJAVanteprima del nuovo catalogo di integratori GJAV
anteprima del nuovo catalogo di integratori GJAV
 
8 7 Nrbb Flow
8 7 Nrbb Flow8 7 Nrbb Flow
8 7 Nrbb Flow
 
A E A Introduction P D F Colombia
A E A  Introduction  P D F  ColombiaA E A  Introduction  P D F  Colombia
A E A Introduction P D F Colombia
 
Esomar Beijing Preso
Esomar Beijing PresoEsomar Beijing Preso
Esomar Beijing Preso
 
Waardeverkenner
WaardeverkennerWaardeverkenner
Waardeverkenner
 
Presentation1
Presentation1Presentation1
Presentation1
 
在生命的幽谷看見人
在生命的幽谷看見人在生命的幽谷看見人
在生命的幽谷看見人
 
Dos and donts of social media for educators 20150529
Dos and donts of social media for educators 20150529Dos and donts of social media for educators 20150529
Dos and donts of social media for educators 20150529
 
Goldenmedia
GoldenmediaGoldenmedia
Goldenmedia
 
Toekomst van zonne-energiesystemen
Toekomst van zonne-energiesystemenToekomst van zonne-energiesystemen
Toekomst van zonne-energiesystemen
 
Cloud Computing
Cloud ComputingCloud Computing
Cloud Computing
 
Library questionnairewebinar7 2010
Library questionnairewebinar7 2010Library questionnairewebinar7 2010
Library questionnairewebinar7 2010
 
Noticias Teleco feb2011
Noticias Teleco feb2011Noticias Teleco feb2011
Noticias Teleco feb2011
 
Duurzaam Inkopen
Duurzaam InkopenDuurzaam Inkopen
Duurzaam Inkopen
 
Optiscan
OptiscanOptiscan
Optiscan
 
Carrefour Valle Del Lili
Carrefour Valle Del LiliCarrefour Valle Del Lili
Carrefour Valle Del Lili
 
Oracle applications r12.2.0 installation on linux
Oracle applications r12.2.0 installation on linuxOracle applications r12.2.0 installation on linux
Oracle applications r12.2.0 installation on linux
 
Verduurzamen?Verduurzamen!
Verduurzamen?Verduurzamen!Verduurzamen?Verduurzamen!
Verduurzamen?Verduurzamen!
 
QPWB Default Services E-Brochure
QPWB Default Services E-BrochureQPWB Default Services E-Brochure
QPWB Default Services E-Brochure
 

Similar a Getting Git...before it gets you

Rc094 010d-git 2 - desconocido
Rc094 010d-git 2 - desconocidoRc094 010d-git 2 - desconocido
Rc094 010d-git 2 - desconocido
Luis Bertel
 
Git cheat sheet__grey
Git cheat sheet__greyGit cheat sheet__grey
Git cheat sheet__grey
King Hom
 
Git cheat sheet__white
Git cheat sheet__whiteGit cheat sheet__white
Git cheat sheet__white
King Hom
 
Git cheat sheet_dark
Git cheat sheet_darkGit cheat sheet_dark
Git cheat sheet_dark
King Hom
 

Similar a Getting Git...before it gets you (20)

Git slides
Git slidesGit slides
Git slides
 
Git
GitGit
Git
 
Introduction to Git and Github
Introduction to Git and Github Introduction to Git and Github
Introduction to Git and Github
 
Github By Nyros Developer
Github By Nyros DeveloperGithub By Nyros Developer
Github By Nyros Developer
 
Hacktoberfest intro to Git and GitHub
Hacktoberfest intro to Git and GitHubHacktoberfest intro to Git and GitHub
Hacktoberfest intro to Git and GitHub
 
Git introduction
Git introductionGit introduction
Git introduction
 
Git basics
Git basicsGit basics
Git basics
 
Git and fundamentals
Git and fundamentalsGit and fundamentals
Git and fundamentals
 
Git for developers
Git for developersGit for developers
Git for developers
 
Git 101 for Beginners
Git 101 for Beginners Git 101 for Beginners
Git 101 for Beginners
 
Getting Started with Git: A Primer for SVN and TFS Users
Getting Started with Git: A Primer for SVN and TFS UsersGetting Started with Git: A Primer for SVN and TFS Users
Getting Started with Git: A Primer for SVN and TFS Users
 
Git
GitGit
Git
 
Git and github
Git and githubGit and github
Git and github
 
Git basics for beginners
Git basics for beginnersGit basics for beginners
Git basics for beginners
 
Git Commands Every Developer Should Know?
Git Commands Every Developer Should Know?Git Commands Every Developer Should Know?
Git Commands Every Developer Should Know?
 
Rc094 010d-git 2 - desconocido
Rc094 010d-git 2 - desconocidoRc094 010d-git 2 - desconocido
Rc094 010d-git 2 - desconocido
 
Git and Github
Git and GithubGit and Github
Git and Github
 
Git cheat sheet__grey
Git cheat sheet__greyGit cheat sheet__grey
Git cheat sheet__grey
 
Git cheat sheet__white
Git cheat sheet__whiteGit cheat sheet__white
Git cheat sheet__white
 
Git cheat sheet_dark
Git cheat sheet_darkGit cheat sheet_dark
Git cheat sheet_dark
 

Último

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Victor Rentea
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Victor Rentea
 

Último (20)

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering Developers
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontology
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 

Getting Git...before it gets you

  • 2. HOW TO BE GOTTEN  I am ‘notmessenger’ in most networks and notmessenger.com/contact has the rest of the ways to find me
  • 3.
  • 5. IT’S THE NEW HOTNESS!  Source code management system  Version control  and …. Distributed!
  • 6. DISTRIBUTED?  There is no central server where your repository must be maintained  Also referred to as being “Decentralized”  Everything you need to maintain a repository is already on your local machine (once you have installed Git)
  • 8. REMEMBER THESE!  Distributed  Staging Area  …or Index  …or Cache  …or Directory cache  …or Current directory cache  …or Staged files
  • 11. MORE AWESOMENESS!  Branches  Merging  Stashes
  • 13. INIT  Create a new repository  Can be empty directory  Can be existing codebase  Example: > git init
  • 14. CONFIG  Manage configuration  Example: > git config --global user.name ‘Jeremy Brown’ > git config --global user.email ‘jeremy@notmessenger.com’
  • 15. STATUS  Display the state of your codebase  Has anything been modified or staged since the last commit?  Example: > git status
  • 16. DIFF  Show diff between states of codebase  Example: > git diff <filename>
  • 17. ADD  Start tracking new files  Stage changes to already-tracked files  Example: > git add . > git add NEWFILE > git add ALREADY_EXISTENT_FILE
  • 18. COMMIT  Record the snapshot of your staged content  Example: > git commit > git commit -m “Commit message” > git commit -a > git commit -am “Commit message”
  • 21.  Git doesn’t have a central server, such as how SVN or others do  You collaborate by synchronizing with other repositories  There is no real difference between a server and client – a Git repository is a Git repository and you can synchronize between any two easily
  • 23. CHECKOUT  Checkout a branch from a remote repository to working directory  Example: > git checkout <branchname>
  • 24. FETCH  Download new branches and data from a remote repository  Is a separate copy of the data from the remote repository – it is not merged with your local working copy  Can then look through new commits, view logs, etc  Example: > git fetch > git fetch [alias] > git fetch --all
  • 25. PULL  First issues a FETCH command and then a MERGE command  Example: > git pull > git pull [alias] > git pull --all
  • 26. PUSH  Push your new branches and data to a remote repository  If someone else has pushed since the last time you fetched and merged the Git server will deny your push until you are up to date  Example: > git push [alias] [branch]
  • 27. REMOTE  List, add and delete remote repository aliases  Example: > git remote > git remote add [alias] [url] > git remote rm [alias]
  • 28. BRANCH  List, create or delete branches  Example: > git branch > git branch <branchname> > git branch –d <branchname>
  • 29. MERGE  Merge any branch into the current branch  Example: > git merge <branchname> > git merge --no-commit <branchname>
  • 30. STASH  Takes the dirty state of your working directory and saves it on a stack of unfinished changes that you can reapply at any time  Example: > git stash > git stash list > git stash apply <stashname> > git stash drop <stashname>
  • 33. MAKE YOUR LIFE EASIER  GitHub for Mac/Windows/Eclipse/Mobile  Git Tower  Gitbox  GitX  SmartGit
  • 34. DEMO OF GIT TOWER
  • 36.
  • 37. HOW IS GIT GOING TO GET YOU?
  • 38. LOOKOUT!  A few of the differences between it and previous generations of SCMs  The index (or stage)  Distributed  Commit history  Git is the new hotness and is being used (virtually) everywhere
  • 41. IMAGE CREDITS  Slide 1 - joecrazy.com/wp-content/uploads/2012/05/14.jpg  Slide 5 - jpegy.com/images/uploads/2012/03/battleshots.jpg  Slide 9 - learn.github.com/images/staging.png  Slide 11 - moustachemadness.files.wordpress.com/2012/02/handlebar- moustache.jpg

Notas del editor

  1. Who has used SVN, CVS or Microsoft SourceSafe? Point out that one of the main differences is DISTRIBUTED
  2. Speak to some generic examples of this architecture.
  3. Can stage individual lines of a file for commit.
  4. Git records your name and email address with every commit you make. So the first step is to tell Git what these are.
  5. Stage and Unstaged changes Against Head Between branches
  6. git commit -a automatically stage all tracked, modified files before the commit -> SVN-like approach
  7. There is some work involved to support this synchronization which is why a lot of teams use Github or something similar. Github also provides a great way to host your code for others to get too without a lot of hassle.
  8. Keep in mind it’s not like SVN where you get new files from repo – you are just changing pointer in tree. git checkout <branchname> -> is also how you switch between branches
  9. Remember origin is an alias Can now do PUSH to remote
  10. git branch : existing branches are listed and the current branch will be highlighted with an asterisk. There are some options can pass as well – not going into those git branch <branchname> : creates a new branch head named <branchname> which points to the current HEAD, or <start-point> if given this will create the new branch, but it will not switch the working tree to it; use "git checkout <newbranch>" to switch to the new branch. git branch –d <branchname> : deletes branch can also rename, set upstream to track, etc
  11. Is a LIFO stack
  12. Commit history – everything is always in the repo and you are pointing to a point in the history