I joined a project and they kinda have a chaos for code testing and version control solution, so I am in charge of implementing those and more.
Me, being relatively new to Git, I was wondering how should I implement the http://nvie.com/posts/a-successful-git-branching-model/ ? And by that I mean:
git flow init
on the LAMP server (where all the testing and version control will be held)? feature_x
/ hotfix_y
/ releas_z
branch in the remote repository? git flow init
setup, on my local cloned repository? I have a basic knowledge of git, so I would appreciate your guidance on this.
If you know a better solution on how to use a control version system and be able to sync from local to live and/or testing environment, please let me know... I'm willing to learn
git-flow is not something you ordinarily run on your remote server, and is merely a tool to aide managing branches. You would only run git flow init
on not-bare checkouts where someone is going to be doing development work. So, in order:
git push
(or, the first time only with: git push --set-upstream origin feature/name-of-current-feature
- this is also in the error message in the current version of git trying to push on a branch not tracking anything)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.