Git: Difference between revisions
No edit summary |
No edit summary |
||
Line 153: | Line 153: | ||
git branch -u origin/master master | git branch -u origin/master master | ||
|} | |} | ||
{| class="mw-collapsible mw-collapsed wikitable" | {| class="mw-collapsible mw-collapsed wikitable" | ||
! git ignore local and remote changes to a file | ! git ignore local and remote changes to a file | ||
Line 172: | Line 173: | ||
----------------------------------------- | ----------------------------------------- | ||
|} | |} | ||
{| class="mw-collapsible mw-collapsed wikitable" | {| class="mw-collapsible mw-collapsed wikitable" | ||
! git branch rebase to keep master intact | ! git branch rebase to keep master intact | ||
Line 198: | Line 200: | ||
git pull --rebase # rebase should not be needed, it should be a ff, but just in case use it | git pull --rebase # rebase should not be needed, it should be a ff, but just in case use it | ||
|} | |||
{| class="mw-collapsible mw-collapsed wikitable" | |||
! git hard-reset a misbehaving submodule to parent commit version | |||
|- | |||
| | |||
git submodule deinit -f . | |||
git submodule update --init | |||
|} | |} | ||
Revision as of 20:10, 13 March 2019
TASKS
Expandgit new shared central bare repo |
---|
Expandcreate shared central repo for existing code |
---|
Expandgit merging conflicts after diverging |
---|
Expandgetting upstream commits into your GitHub fork |
---|
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 branch rebase to keep master intact |
---|
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...