Git: Unterschied zwischen den Versionen

Aus Wiki
Zur Navigation springen Zur Suche springen
(Init)
 
(Merge manually)
Zeile 13: Zeile 13:
alias.info !gitinfo
alias.info !gitinfo
alias.pullign pull -Xignore-space-change
alias.pullign pull -Xignore-space-change
</pre>
== Merge manually ==
[https://stackoverflow.com/a/55885109/3876684 Source]
=== Hybrid -- best of both worlds ===
'''Prerequisite:''' Configure git to use a modern diff tool like kdiff3 by
setting <code>diff.tool</code> and <code>merge.tool</code>.<br />
A method that combines merging and diffing would look something like this:
<pre>
git merge --no-commit --no-ff other_branch
git mergetool
git difftool HEAD
git commit
</pre>
</pre>

Version vom 27. Februar 2023, 16:04 Uhr

Alias

New alias:

git config --global alias.co checkout

Useful definitions:

alias.moddiff diff --diff-filter=M
alias.unstage reset HEAD --
alias.alias !git --no-pager config --get-regexp alias
alias.revfile checkout HEAD --
alias.info !gitinfo
alias.pullign pull -Xignore-space-change

Merge manually

Source

Hybrid -- best of both worlds

Prerequisite: Configure git to use a modern diff tool like kdiff3 by setting diff.tool and merge.tool.
A method that combines merging and diffing would look something like this:

git merge --no-commit --no-ff other_branch
git mergetool
git difftool HEAD
git commit