Git Branches

50 %
50 %
Information about Git Branches
Technology

Published on October 23, 2013

Author: mrfoto

Source: slideshare.net

Description

Introduction to git branches.

GITBRANCHES Miha Rekar

GITBRANCHES

GITBRANCHES Git branches

Problem • only using master branch • conflicts on master branch • Developing only one task at a time Git branches

Example 1. Do work on a web site Git Branches

Example 1. Do work on a web site 2. Create a branch for a new feature you’re working on Git Branches

Example 1. Do work on a web site 2. Create a branch for a new feature you’re working on 3. Do some work in that branch Git Branches

Example 1. Do work on a web site 2. Create a branch for a new feature you’re working on 3. Do some work in that branch CRITICAL ISSUE 4. Revert back to your production branch 5. Create a branch to add the hotfix 6. After it’s tested, merge the hotfix branch, and push to production 7. Switch back to your original feature and continue working Git Branches

BasicBranchING git branch crazy-experiment git branch -d crazy-experiment git checkout <existing-branch>
 git checkout -b <new-branch> Git Branches

BASICWorkflow git branch new-feature git checkout new-feature # Edit some files git add <file> git commit -m "Started work on a new feature" # Repeat git checkout master git merge <branch> Git Branches

githubflow • The project maintainer initializes the official repository Git Branches

githubflow • The project maintainer initializes the official repository • Developers fork the official repository Git Branches

githubflow • The project maintainer initializes the official repository • • Developers fork the official repository Developers clone their forked repositories Git Branches

githubflow • The project maintainer initializes the official repository • • • Developers fork the official repository Developers clone their forked repositories Developers work on their features Git Branches

githubflow • The project maintainer initializes the official repository • • • • Developers fork the official repository Developers clone their forked repositories Developers work on their features Developers publish their features Git Branches

githubflow • The project maintainer initializes the official repository • • • • • Developers fork the official repository Developers clone their forked repositories Developers work on their features Developers publish their features The project maintainer integrates their features Git Branches

githubflow • The project maintainer initializes the official repository • • • • • Developers fork the official repository • Developers synchronize with the official repository Developers clone their forked repositories Developers work on their features Developers publish their features The project maintainer integrates their features Git Branches

ShipIT

Hvala @ http://mr.si/ @mr_foto mrfoto Git Branches info@mr.si

Add a comment

Related presentations

Related pages

Git - Basic Branching and Merging

3.2 Git Branching - Basic Branching and Merging. ... when you switch branches, Git resets your working directory to look like it did the last time you ...
Read more

Git Branches – Thomas-Krenn-Wiki

Branches sind bei Git etwas sehr einfaches und können zügig und ohne Probleme erstellt werden. Sie eignen sich zum Entwickeln von neuen Features, die ...
Read more

Git

The advantages of Git compared to other source control systems. Documentation. Command reference pages, Pro Git book content, videos and other material.
Read more

GitRef - Branching - Git Reference

When you switch branches, Git replaces your working directory with the snapshot of the latest commit ... Branching safely isolates work that we do into ...
Read more

Branches - Git - Ralf Ebert

$ git branch -v # Branches mit referenziertem Commit auflisten * master 068b9b9 the 3rd commit # * = Branch master ist aktiv
Read more

git ready » Remote Branches auflisten

Manchmal möchtest du herausfinden, welche Branches in deinem entfernten Repository existieren, so dass du sie herunterladen, auschecken und mit deinen ...
Read more

Git - Branches | Atlassian Git Tutorial

An introduction to Git branches in this comprehensive Git training. Branching, merging, and more are covered in the Atlassian Git tutorial.
Read more

git - Der einfache Einstieg - kein Schnick-schnack

Branching. Branches werden benutzt, um verschiedene Funktionen isoliert voneinander zu entwickeln. Der master-Branch ist der "Standard"-Branch, wenn du ein ...
Read more

Git – Wikipedia

Branches in Git sind (im Gegensatz zu anderen SCMs) sehr performant implementiert: ... Es existieren spezielle Remote-tracking branches, ...
Read more

git ready » Remote-tracking Branches

Verwirrt darüber, was genau remote-tracking Branches sind? Keine Sorge, es geht nicht nur dir so. Es gibt grundsätzlich zwei Arten von Branches: lokal ...
Read more