diff options
author | Kenny Ballou <kballou@devnulllabs.io> | 2018-03-23 16:53:16 -0600 |
---|---|---|
committer | Kenny Ballou <kballou@devnulllabs.io> | 2018-03-23 21:21:07 -0600 |
commit | cb9f7476bea33a9864241243f1b4624622d7fb63 (patch) | |
tree | 5b04242820aa3805ab9a661561dcadc329b0dd8c | |
parent | f6c19219c3174963db7ab7934bea5657bac9040f (diff) | |
download | git-in-reverse-cb9f7476bea33a9864241243f1b4624622d7fb63.tar.gz git-in-reverse-cb9f7476bea33a9864241243f1b4624622d7fb63.tar.xz |
use `fetch` or `pull --ff-only` over `git up`
I now actually prefer just using fetch as it is more wildly available
and easier to teach.
-rw-r--r-- | src/code/5/9 | 4 | ||||
-rw-r--r-- | src/git-in-reverse.tex | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/src/code/5/9 b/src/code/5/9 index ddc2875..a8f50e6 100644 --- a/src/code/5/9 +++ b/src/code/5/9 @@ -1,2 +1,2 @@ -[alias] - up = !git remote update -p +[pull] + ff = only diff --git a/src/git-in-reverse.tex b/src/git-in-reverse.tex index 14b7db4..37199a3 100644 --- a/src/git-in-reverse.tex +++ b/src/git-in-reverse.tex @@ -1110,7 +1110,8 @@ Signed-off-by: Junio C Hamano <gitster@pobox.com> \item{Will force a merge, if drift between remote and local} \item{From the Git documentation~\cite{website:gitworkflows7}, ``Do not use \texttt{git pull} unless you actually want to merge the remote branch.''} -\item{I personally prefer creating an alias for \texttt{git-remote}} +\item{I personally prefer using \texttt{git-fetch} and \texttt{git-merge}} +\item{Another option: use \texttt{--ff-only} when pulling} \end{itemize} \lstinputlisting[title=\texttt{\~{}/.gitconfig}]{code/5/9} \end{frame} |