Git: Difference between revisions
No edit summary |
No edit summary |
||
Line 438: | Line 438: | ||
= | === Git branching strategies === | ||
==== Simplified Gitflow ==== | |||
== Git branching strategies == | |||
=== Simplified Gitflow === | |||
This is awesome, tight, and well-capable of handling any app with a single primary release (like a website). | This is awesome, tight, and well-capable of handling any app with a single primary release (like a website). | ||
RELEASE TAG | RELEASE TAG | ||
Line 454: | Line 451: | ||
Read more [https://medium.com/goodtogoat/simplified-git-flow-5dc37ba76ea8 here] and [https://gist.github.com/vxhviet/9c4a522921ad857406033c4125f343a5 here]. | Read more [https://medium.com/goodtogoat/simplified-git-flow-5dc37ba76ea8 here] and [https://gist.github.com/vxhviet/9c4a522921ad857406033c4125f343a5 here]. | ||
=== Gitflow === | ==== Gitflow ==== | ||
I was a die-hard believer in gitflow for a while. It's very capable. Too capable. You MIGHT need it if you are supporting multiple versions in production... but in all my cases, it is overkill, compared to Simplified Gitflow. The classic diagram, originally from [http://nvie.com/posts/a-successful-git-branching-model/ here]... | I was a die-hard believer in gitflow for a while. It's very capable. Too capable. You MIGHT need it if you are supporting multiple versions in production... but in all my cases, it is overkill, compared to Simplified Gitflow. The classic diagram, originally from [http://nvie.com/posts/a-successful-git-branching-model/ here]... | ||
[[File:Git for nice release planning.png]] | [[File:Git for nice release planning.png]] | ||
=== My git pages (older) === | |||
[[Track your changes to an open-source project with git]] | |||
[[Using git on Windows]] | |||
[[Portable git]] |
Revision as of 21:17, 20 October 2021
TASKS
Expandgit new shared central bare repo |
---|
Expandcreate shared central repo for existing code |
---|
ExpandSet default branch of a bare repo |
---|
Expandgitflow |
---|
ExpandFetch a branch from remote without checking it out |
---|
ExpandPush any branch from bare to origin |
---|
Expandgit merging conflicts after diverging |
---|
Expandgit create and push a feature branch |
---|
Expandgetting upstream commits into your GitLab GITFLOW fork |
---|
Expandgetting upstream commits into your GitLab fork |
---|
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 merge changes in a single file |
---|
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 |
---|
Git branching strategies
Simplified Gitflow
This is awesome, tight, and well-capable of handling any app with a single primary release (like a website).
RELEASE TAG o----------------------------o-----------------o------------o------> MASTER \ / \ \----------/ HOTFIX \ / \ \ \----------------------/ \--------------------o-----o------> DEVELOP \ / \----------------/ FEATURE
Gitflow
I was a die-hard believer in gitflow for a while. It's very capable. Too capable. You MIGHT need it if you are supporting multiple versions in production... but in all my cases, it is overkill, compared to Simplified Gitflow. The classic diagram, originally from here...
My git pages (older)
Track your changes to an open-source project with git Using git on Windows Portable git