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
- Host: GitHub
- URL: https://github.com/devbyray/git-demo-project
- Owner: devbyray
- Created: 2017-11-26T19:21:26.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-12-17T20:06:42.000Z (over 8 years ago)
- Last Synced: 2025-01-12T10:11:48.298Z (about 1 year ago)
- Language: CSS
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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