Skip to content

Instantly share code, notes, and snippets.

@athiwatp
Forked from NSLog0/hotfix_merge
Created November 10, 2016 17:04
Show Gist options
  • Save athiwatp/d8e589aff7fe3a721e07e986619d7a94 to your computer and use it in GitHub Desktop.
Save athiwatp/d8e589aff7fe3a721e07e986619d7a94 to your computer and use it in GitHub Desktop.
// เปลี่ยนไปอยู่ master ก่อน
git checkout master
// ทำการ merge โค้ดเข้าไปใน master
git merge --no-ff hotfix/create-post-error-0.2.1
// ติดเลขเวอร์ชั่นเพื่อเตือนความจำ
git tag -a 0.2.1
--------------------------------------------------
// เปลี่ยนไป develop
git checkout develop
// ทำการ merge โค้ดเข้าไปใน develop
git merge --no-ff hotfix/create-post-error-0.2.1
// merge เสร็จก็ลบมันทิ้งจะได้ไม่เปลื่องและรก
git branch -d hotfix/create-post-error-0.2.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment