Git: Difference between revisions
(→TASKS) |
No edit summary |
||
Line 91: | Line 91: | ||
# OR, if you don't want the config, you have to be more specific: | # OR, if you don't want the config, you have to be more specific: | ||
# git push -u origin feature/whiz-bang | # git push -u origin feature/whiz-bang | ||
|} | |||
{| class="mw-collapsible mw-collapsed wikitable" | |||
! getting upstream commits into your GitLab GITFLOW fork | |||
|- | |||
| NOTE: This doesn't work from a bitpost bare repo, so you need to make a new direct clone of your GitLab fork, first, if you don't have one yet. | |||
This is very easy if you have left the master branch alone for the parent's commits, and keep your add-on commits in a release-x.x branch, as we have for SWS and SWSS. | |||
cdl | |||
# Clone local repo directly from GitLab (already done on cobra) | |||
git clone git@gitlab.com:moodboom/Simple-Web-Server.git SWS-gitlab-moodboom | |||
cd SWS-gitlab-moodboom | |||
# make sure master is checked out | |||
git branch | |||
# add parent as remote | |||
git remote add ole-upstream git@gitlab.com:eidheim/Simple-Web-Server.git | |||
git fetch ole-upstream | |||
git rebase ole-upstream/master | |||
git push -f origin master | |||
You can now delete the fresh clone, it has done its job. Or leave it for ease-of-use for next rebase. | |||
Next, go to dev repo, pull master, check out release, create a new release from that, and rebase master. It is the gitflow way! | |||
To complete SW(S)S rebase, update mh-install-sws to use the new branch. Then run it on all your dev boxes, whoop. (Then, code up any fixes, sigh... and push em.. .sigh... and get on with it!) | |||
|} | |} | ||
{| class="mw-collapsible mw-collapsed wikitable" | {| class="mw-collapsible mw-collapsed wikitable" |
Revision as of 22:17, 28 July 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 |
---|
From here...