On Do, 13 Nov 2025, Tony Mechelynck wrote:
> I thought that "git status" would tell me whether or not I needed to
> pull. On Mercurial I would run "hg incoming" and it would tell me
> what, if anything, would be added to my repository if I pulled. Not
> wanting to run "git pull" every hour to have it tell me "Nothing to
> do" I thought that "git status" would tell me if there was anything on
> the remote which I needed to pull. Apparently it doesn't. So how do I
> ask git "What am I missing ?"
You need to fetch updates first, otherwise git status won't know about
it. You can do this via git fetch or git pull. The difference is, git
fetch won't touch your working/checked out tree, while git pull will
merge the new changes in. For that reason I find git fetch safer.
Once you have updated your remotes, git status should know about it and
tell you that you are "behind".
git log --oneline HEAD..origin/master
This would show you in a single line what commits you are missing in
your local tree. And git rebase origin/master will update your local
tree with the latest changes from the remote repository (and replay your
custom commits on top of it afterwards).
> Since I seem to remember you have some local changes (I suppose commited
> on top of the checkout master branch), you can then update your local
> branch and re-apply your changes on top of it using
> git rebase origin/master
>
>
> I had local changes in my Mercurial clone but they were not important
> (one line in src/feature.h to enable +xterm_save) and I haven't
> brought them over to my git clone. All differences between my various
> shadow builds are defined by means of environment variables (set
> differently in one shell per shadow directory), which require no
> changes to the Vim distribution.
In that case, you can just git pull and update your working tree without
worries and git log --oneline should tell you what changed.
Thanks,
Christian
--
Living in New York City gives people real incentives to want things that
nobody else wants.
-- Andy Warhol
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/vim_dev/aRXONurG4qcYun8o%40256bit.org.