Reputation: 103
I'm really new to git (read the basics of the git pro book) and have few back-end knowledge. As my project is expanding git flow seems to be the most appropriate and simple tool for what I need. Yet I'd like to be sure of the steps to follow before getting started.
My \var\www
folder is as follows:
Currently I'm doing the changes in myproject_preview, I'm doing tests and whenever it's ok to release I manually copy the changed file.
I still want to be able to preview the changes before pushing them to myproject.
From what I figured, I need to :
git init -u
in myproject git flow init
in myproject_previewIs that the right way to do it ?
Writing this thread, I realize I'm not so sure I'm familiar with the git concept :/
Upvotes: 3
Views: 7808
Reputation:
You first need to understand the basic concepts of GIT, then you can move on to git flow.
IMHO you need to know how merge branches and fix conflicts manually before using git flow.
Here's a great interactive course/tutorial to learn GIT the right way:
After understanding GIT, you need to understand the "model" behind git flow, reading this: http://nvie.com/posts/a-successful-git-branching-model/
After understanding the branch model, and after initializing a the git flow in your project, you can perform your changes in features, by typing
git flow feature start feature_pretty_name
And so on.
Upvotes: 5