hotfix to nice model in git

git checkout master
git pull
git checkout -b hotfix/${version}
//тут меняем версию
git commit -a -m ‘version changed’
//тут меняем применяем горячий фикс
git commit -a -m ‘hotfix applied’
git checkout develop
git pull
git merge hotfix/${version}
git checkout master
git merge hotfix/${version}
git tag -a ${version}
git push
git push –tags
git branch -d hotfix/{version}
git checkout develop

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s