gitflow | git |
---|---|
git flow init |
git init |
x | git commit --allow-empty -m "Initial commit" |
x | git checkout -b develop master |
gitflow | git |
---|---|
N/A | git remote add origin [email protected]:MYACCOUNT/MYREPO |
While using GIT / Bitbucket PR (Pull Request Mode) You must publish your feature online
Then create PR, then delete it manually on local branch
Use git branch -r
then git remote prune origin
or git pull --prune
gitflow | git |
---|---|
git flow feature start MYFEATURE |
git checkout -b feature/MYFEATURE develop |
gitflow | git |
---|---|
git flow feature publish MYFEATURE |
git checkout feature/MYFEATURE |
x | git push origin feature/MYFEATURE |
gitflow | git |
---|---|
git flow feature pull origin MYFEATURE |
git checkout feature/MYFEATURE |
x | git pull --rebase origin feature/MYFEATURE |
gitflow | git |
---|---|
git flow feature finish MYFEATURE |
git checkout develop |
x | git merge --no-ff --no-edit feature/MYFEATURE |
x | git branch -d feature/MYFEATURE |
gitflow | git alt |
---|---|
git flow feature finish MYFEATURE |
git checkout feature/MYFEATURE |
x | git merge --no-ff --no-edit develop |
x | git push origin feature/MYFEATURE (merge online) |
x | git checkout develop |
x | git branch -d feature/MYFEATURE |
gitflow | git |
---|---|
N/A | git push origin develop |
x | git push origin :feature/MYFEATURE (if pushed) |
gitflow | git |
---|---|
git flow release start 1.2.0 |
git checkout -b release/1.2.0 develop |
gitflow | git |
---|---|
git flow release publish 1.2.0 |
git checkout release/1.2.0 |
x | git push origin release/1.2.0 |
gitflow | git |
---|---|
N/A | git checkout release/1.2.0 |
x | git pull --rebase origin release/1.2.0 |
gitflow | git |
---|---|
git flow release finish 1.2.0 |
git checkout master |
x | git merge --no-ff release/1.2.0 |
x | git tag -a 1.2.0 |
x | git checkout develop |
x | git merge --no-ff release/1.2.0 |
x | git branch -d release/1.2.0 |
gitflow | git |
---|---|
N/A | git push origin master |
x | git push origin develop |
x | git push origin --tags |
x | git push origin :release/1.2.0 (if pushed) |
gitflow | git |
---|---|
git flow hotfix start 1.2.1 [commit] |
git checkout -b hotfix/1.2.1 [commit] |
gitflow | git |
---|---|
git flow hotfix finish 1.2.1 |
git checkout master |
x | git merge --no-ff hotfix/1.2.1 |
x | git tag -a 1.2.1 |
x | git checkout develop |
x | git merge --no-ff hotfix/1.2.1 |
x | git branch -d hotfix/1.2.1 |
gitflow | git |
---|---|
N/A | git push origin master |
x | git push origin develop |
x | git push origin --tags |
x | git push origin :hotfix/1.2.1 (if pushed) |