Skip to content

web-workers/2-branch-pull-fetch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 

Repository files navigation

Git Branch, Pull, and Fetch

Git Branch

One of the most powerful things about git is the ability to branch off from the main “trunk” of the code in which to create a new feature, test some new concept, upgrade packages, etc.

This is super powerful because it gives us as a team of developers the ability to work somewhat agnostic of other team members in our own little code world. I as a developer can branch off of some other branch and I am now in my own little repo world I can make changes, I can break things, etc without fear of accidentally pushing up my code to the “source of truth” branch and potentially getting a bug deployed into production.

Web Workers

The Web Workers website is https://memphiswebworkers.com

The Commands

Git Branch

Git - git-branch Documentation

git branch ...[all the things]

Git Branch has LOTS of arguments that can be applied but the ones I use the most are:

git branch -l or —list
git branch -D [branch-to-delete]

Git Checkout

Git - git-checkout Documentation

git checkout [-q] [-f] [-m] [<branch>]

Like Git Branch, Checkout has lots of powerful switches and arguments but below are the ones I use the most:

git checkout [existing-branch-name]
git checkout -b [new-branch-name]

About

Git Branch, Checkout, Pull, Fetch and Merge

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •