[Vm-dev] a couple of git issues
Das.Linux at gmx.de
Fri Apr 28 07:46:55 UTC 2017
> On 28.04.2017, at 04:41, Eliot Miranda <eliot.miranda at gmail.com> wrote:
> Hi All,
> first, is there a way we can modify the checkin script (scripts/gitci) to check for incoming changes so that by default the check-in fails? Some people may check automatically but I always forget and its annoying to have to merge later on.
Well, frequent merges is kind-of part of git's philosophy.
Also, just getting incoming changes before checking won't buy you anything, because
a merge will surely happen, and it's actually safer to have a commit _before_ merging
with incoming changes. One could surely use rebasing , but this can get hairy in cases
of incompatible diffs.
Looking at the script itself, sure, you could add a `git pull` or `git pull --rebase`
somewhere before the add or commit, but then, when you have incompatible diffs,
it just wouldn't go through with the pull and say that you should commit or stash
away your changes before continuing the 'pull'.
I would think that'll make things only more annoying.
> second, to eliminate this error message:
> remote: Resolving deltas: 100% (17/17), completed with 8 local objects.
> remote: This repository moved. Please use the new location:
> remote: https://github.com/OpenSmalltalk/opensmalltalk-vm.git
> To http://github.com/OpenSmalltalk/vm
> should I simply edit .git/configure to change
> [remote "origin"]
> url = http://github.com/OpenSmalltalk/vm
> [remote "origin"]
> url = https://github.com/OpenSmalltalk/opensmalltalk-vm.git
> ? Or something else?
> best, Eliot
: from git's manpage or (https://git-scm.com/docs/git-rebase):
Assume the following history exists and the current branch is "topic":
From this point, the result of either of the following commands:
git rebase master
git rebase master topic
and this can be made easier with a 'git pull --rebase'
More precisely, git pull runs git fetch with the given parameters and calls git merge to merge the retrieved branch heads into the current branch. With --rebase, it runs git rebase instead of git merge.
So by default `git pull` is
but `git pull --rebase` would be
More information about the Vm-dev