Git Branch

Referensi: http://nvie.com/posts/a-successful-git-branching-model/

Fasilitas branch pada git bermanfaat untuk release. Misalkan ketika sudah di-release, ada hotfix, kita bisa mengubah di branch release untuk berikutnya diintegrasikan kembali dengan branch master.

git checkout -b release master //membuat branch release sebagai cabang dari master
git merge –no-ff master //merge master ke release
git push origin release:release

Berikutnya untuk pindah branch, kita tinggal memanggil perintah

git checkout <nama branch>

This entry was posted in   GIT.
Bookmark the   permalink.

Chandra Oemaryadi has written 244 articles

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>