Git basics
Gitflow
GitHub flow
Hubflow
Git is a free and open source distributed Version Control System designed to handle everything from small to very large projects with speed and efficiency.
Ok... but what does VCS mean?
master
production-ready state
develop
latest delivered changes for the next release
May branch off from:
develop
Must merge back into:
develop
Did you know?
You can install gitflow tool please from https://github.com/nvie/gitflow
And then just start it using the commands:
$ git flow init [-fd]
-d use default branch names
-f force
Using gitflow tool
Git console process
Using gitflow tool
$ git checkout master
$ git merge --no-ff hotfix-1.2.1
$ git tag -a 1.2.1
$ git checkout develop
$ git merge --no-ff hotfix-1.2.1
$ git branch -d hotfix-1.2.1
Git console process
Using gitflow tool
GitHub Flow is a lightweight, branch-based workflow that supports teams and projects where deployments are made regularly.
Anything in the master branch is always deployable.
All the branches are created from master.
Your branch name should be descriptive.
One commit for every separate unit of change.
Don't be lazy and use clear comments.
Merge your code to the master branch for deployment.
Keywords into the text of your Pull Request like Closes #32 would close issue number 32 in the repository.
Gitflow tools limit their scope to your local Git repo clone
Loving pull requests!!
Lazyness of doing too many commands
Ensure online repo is up to date
Clone the existing repo from GitHub to your local workstation:
git clone git@github.com:<orgname>/<reponame>
Do not fork the repo on GitHub - clone the master repo directly.
You have to do this every time you clone a repo.
git hf init
git hf push
git hf pull