Git: Difference between revisions
No edit summary |
No edit summary |
||
Line 43: | Line 43: | ||
master | master | ||
* moodboom-quick-http | * moodboom-quick-http | ||
|} | |||
{| class="mw-collapsible mw-collapsed wikitable" | |||
! gitflow | |||
|- | |||
| Gitflow is awesome, using it myself and everywhere I work these days (2020). | |||
* Devs work out of develop branch | |||
* Devs create feature branches off develop for any decent-sized work | |||
* For a release: | |||
** From stable develop branch: | |||
git tag -a -m "#MAJOR#.#MINOR#".0 #MAJOR#.#MINOR#.0 | |||
git checkout -b release/release_#MAJOR#.#MINOR# | |||
git push --set-upstream origin release_#MAJOR#.#MINOR# | |||
git checkout master && git merge release/release_#MAJOR#.#MINOR# && git push | |||
git checkout develop # and get back to it! | |||
** Then you can do hotfixes in it, tagged #MAJOR#.#MINOR#.++, merged back into master and develop | |||
|} | |} | ||
{| class="mw-collapsible mw-collapsed wikitable" | {| class="mw-collapsible mw-collapsed wikitable" | ||
Line 210: | Line 225: | ||
S app/views/_partials/jsIncludes.scala.html | S app/views/_partials/jsIncludes.scala.html | ||
----------------------------------------- | ----------------------------------------- | ||
|} | |} | ||
{| class="mw-collapsible mw-collapsed wikitable" | {| class="mw-collapsible mw-collapsed wikitable" |
Revision as of 20:39, 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...