On Fri, Aug 06, 2021 at 06:32:52AM -0700, sharan....@gmail.com wrote: > Thanks, Magnus. I have pulled (git pull) before executing the command I > showed. [...]
While we're ay it, please next time consider *not* pulling but fetching - just as Magnus has suggested to you. The reason is that `git pull` does more than just getting changes from a remote repository: it tries to merge them into your local branch which is currently checked out, and this might easily not be what you'd expect. In other words, `git pull` contains too much magic which makes too much assumptions. Please consider reading this essay [1] for better explanation. 1. https://longair.net/blog/2009/04/16/git-fetch-and-merge/ -- You received this message because you are subscribed to the Google Groups "Git for human beings" group. To unsubscribe from this group and stop receiving emails from it, send an email to git-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/git-users/20210815135648.6jzvkamivjjvruq2%40carbon.