Tag: git

Some helpful Git resources

A friend recently told the following joke:

“The idea that git can be used offline is an illusion – you still need connectivity for googling which arguments to pass to what command.”

That’s an exaggeration, of course, but as always, there’s a grain of truth in it. So here we go:

Solution for an error with ‘brew update’ with merging files

When I tried updating homebrew/brew, the following error occurred:

brew update: The following untracked working tree files would be overwritten by merge


# cd /usr/local
# git fetch origin
# git reset --hard origin/master

as explained in the second answer, solved it. Source:

git – brew update: The following untracked working tree files would be overwritten by merge: – Stack Overflow.