- Master Branch
- Development Branch
Start working on new feature
When you start to work on a new feature, you can create a separate feature branch for your self from the develop branch and start working. You can then merge your changes to the development branch once you complete the feature. The following instructions will guide you to start.
Task
|
Command
|
Description
|
---|---|---|
Commit your changes | git commit -a -m "your commit message" | Committing your changes to your local git repository |
Creating a feature branch | git checkout -b myfeature development | You can create a new feature branch called myfeature from thedevelopment branch |
Delete the worked feature branch | git branch -d myfeature | |
Incorporating changes to development branch | git checkout development | This will add your changes to your local development branch |
Push the changes to development branch | git push origin development | Push the changes to the central git repository under development branch |
For more information visit http://nvie.com/posts/a-successful-git-branching-model/
No comments:
Post a Comment