Git: Difference between revisions
No edit summary |
No edit summary |
||
Line 50: | Line 50: | ||
* Devs work out of develop branch | * Devs work out of develop branch | ||
* Devs create feature branches off develop for any decent-sized work | * Devs create feature branches off develop for any decent-sized work | ||
* | * Once develop is stable and you are ready for a release: | ||
git tag -a -m "#MAJOR#.#MINOR#".0 #MAJOR#.#MINOR#.0 | git tag -a -m "#MAJOR#.#MINOR#".0 #MAJOR#.#MINOR#.0 | ||
git checkout -b release/release_#MAJOR#.#MINOR# | git checkout -b release/release_#MAJOR#.#MINOR# | ||
Line 57: | Line 56: | ||
git checkout master && git merge release/release_#MAJOR#.#MINOR# && git push | git checkout master && git merge release/release_#MAJOR#.#MINOR# && git push | ||
git checkout develop # and get back to it! | git checkout develop # and get back to it! | ||
* | * Do hotfixes as needed in release branch, tagged #MAJOR#.#MINOR#.++, merged back into master and develop | ||
|} | |} | ||
{| class="mw-collapsible mw-collapsed wikitable" | {| class="mw-collapsible mw-collapsed wikitable" |
Revision as of 20:41, 12 February 2020
TASKS
Expandgit new shared central bare repo |
---|
Expandcreate shared central repo for existing code |
---|
ExpandSet default branch of a bare repo |
---|
Expandgitflow |
---|
Expandgit merging conflicts after diverging |
---|
Expandgit create and push a feature branch |
---|
Expandgetting upstream commits into your GitHub fork |
---|
ExpandClone a bare repo (eg github, gitlab, bb) into a bare repo |
---|
Expandgit create new branch on server, pull to client |
---|
Expandgit remove old branches |
---|
ExpandWork with two local repos |
---|
Expandgit pull when untracked files are in the way |
---|
Expandgit create new branch when untracked files are in the way |
---|
Expandgit recreate repo |
---|
Expandgit connect to origin after the fact |
---|
Expandgit ignore local and remote changes to a file |
---|
Expandgit changing branches in a project with submodules |
---|
Expandgit hard-reset a misbehaving submodule to parent commit version |
---|
CONFIGURATION
Expandgit visual difftool and mergetool setup |
---|
Expandgit convert to a bare repo |
---|
Expandgit convert bare to a mirror of remote (github, facebook, etc) |
---|
Expandgit create merge-to command |
---|
Expandgit fix github diverge from local bare repo following README.md edit |
---|
Expandgit windows configure notepad++ editor |
---|
Expandgit fix push behavior - ONLY PUSH CURRENT doh |
---|
Expandgit multiple upstreams |
---|
From here...