Feature Branch
Table of contents
I’ve heard that feature branches are good things? How’s that
To be honest - no idea. Have never tried.
This is the way to create a new branch (from master)
$ git checkout -b feature-branch
Switched to a new branch 'feature-branch'
AMBWKS196:rinkkasatiainen.github.com akis$ git branch
* feature-branch
master
Seeing your branches -> You can use gitk or SmartGit, or other tools.
Then doing some stuff on your branch. Commiting often. You can push a new branch also to master 1
$ git push -u origin feature-branch
Username for ...
Password for ...
Counting objects: 28, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (24/24), done.
Writing objects: 100% (24/24), 4.08 KiB, done.
Total 24 (delta 17), reused 0 (delta 0)
To https://github.com/rinkkasatiainen/rinkkasatiainen.github.com.git
* [new branch] feature-branch -> feature-branch
Branch feature-branch set up to track remote branch feature-branch from origin.