An open API service indexing awesome lists of open source software.

https://github.com/devbyray/git-demo-project

This is the demo project for the Git 101 series by Mr Frontend
https://github.com/devbyray/git-demo-project

Last synced: about 1 year ago
JSON representation

This is the demo project for the Git 101 series by Mr Frontend

Awesome Lists containing this project

README

          

# git-demo-project
This is the demo project for the Git 101 series by Mr Frontend

Git 101, the practical guide! - STEP 1

- Install Git
- Create a project or initialise a other project
- Create a remote git repo (github, bitbucket etc)
- Setup username & password

# Git 101, the practical guide! - STEP 3: Branches

What is a branch?

A branch is a separate workspace, it’s like a bucket where you can fiddle around without screwing the production application.

You create branches when you are gonna make new functionality or features for your application.

So let’s get started with branches!

Check your branches

git branch

Update your local branches

git fetch origin

Create branch

git checkout -b branch_name

Push to a branch

git push origin branch_name

Pull changes from a branch

git pull origin branch_name

Switch branch

git checkout branch_name

Delete local branch

git branch -d branch_name