Git: Difference between revisions
No edit summary |
|||
Line 78: | Line 78: | ||
=== CONFIGURATION === | === CONFIGURATION === | ||
{| class="mw-collapsible mw-collapsed wikitable" | |||
! git visual difftool and mergetool setup | |||
|- | |||
| Meld is purdy, let's kick its tires. Hope it actually works... | |||
git config --global diff.tool meld | |||
git config --global merge.tool meld | |||
git config --global --add difftool.prompt false | |||
| I used to set up kdiff3 manually, like this... (gross) | |||
* LINUX - put this in ~/.gitconfig | |||
[diff] | |||
tool = kdiff3 | |||
[merge] | |||
tool = kdiff3 | |||
* WINDOZE | |||
[difftool "kdiff3"] | |||
path = C:/Progra~1/KDiff3/kdiff3.exe | |||
trustExitCode = false | |||
[difftool] | |||
prompt = false | |||
[diff] | |||
tool = kdiff3 | |||
[mergetool "kdiff3"] | |||
path = C:/Progra~1/KDiff3/kdiff3.exe | |||
trustExitCode = false | |||
[mergetool] | |||
keepBackup = false | |||
[merge] | |||
tool = kdiff3 | |||
* LINUX Before - What a ridiculous pita... copy this into .git/config... | |||
[difftool "kdiff3"] | |||
path = /usr/bin/kdiff3 | |||
trustExitCode = false | |||
[difftool] | |||
prompt = false | |||
[diff] | |||
tool = kdiff3 | |||
[mergetool "kdiff3"] | |||
path = /usr/bin/kdiff3 | |||
trustExitCode = false | |||
[mergetool] | |||
keepBackup = false | |||
[merge] | |||
tool = kdiff3 | |||
|} | |||
{| class="mw-collapsible mw-collapsed wikitable" | {| class="mw-collapsible mw-collapsed wikitable" | ||
! git convert to a bare repo | ! git convert to a bare repo | ||
Line 131: | Line 176: | ||
And that MIGHT get you on your way... but I would no longer trust ANY of your local repos... | And that MIGHT get you on your way... but I would no longer trust ANY of your local repos... | ||
This is a serious pita. | This is a serious pita. | ||
|} | |} | ||
{| class="mw-collapsible mw-collapsed wikitable" | {| class="mw-collapsible mw-collapsed wikitable" |
Revision as of 18:10, 20 August 2016
TASKS
Expandgit merging conflicts after diverging |
---|
Expandgit create new branch on server, pull to client |
---|
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 |
---|
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...