Questions tagged [git]

popular version control and how it gets used on OS X and iOS

Filter by
Sorted by
Tagged with
3006 votes
8 answers
2.5m views

Why am I getting an “invalid active developer path” when attempting to use Git after upgrading to macOS Sonoma?

After upgrading to macOS Sonoma, I tried to run git from Terminal but it kept giving me the following error: xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing ...
The Onin's user avatar
  • 66.5k
478 votes
15 answers
305k views

git auto-complete for *branches* at the command line?

On my Linux machine I have autocomplete for branches with Git. [Note we are talking about git branch completion, not bash completion (e.g. commands, files, etc). Thus NOT Lane's answer at all] For ...
Michael Durrant's user avatar
231 votes
14 answers
243k views

How to use the Homebrew installed git on Mac?

I have installed the newest version of git (1.8.3) using homebrew but when I type git --version in my terminal, it prints: git version 1.7.10.2 (Apple Git-33) What should I do to replace the old ...
Levani's user avatar
  • 4,405
40 votes
5 answers
9k views

.git-completion.bash producing error on macOS Sierra 10.12.6

I've followed the process for git-completion as per the description provided at https://medium.com/@farooqyousuf/autocomplete-git-commands-and-branch-names-in-terminal-on-mac-os-x-4e0beac0388a: The ...
Rishi Kulshreshtha's user avatar
33 votes
5 answers
31k views

My Automator Workflow fails because it fails to find the git command within the 'Run Shell Script' command? Need help

I have an Automator workflow and one of the actions is to clone a repository. Here's the code for the 'Run Shell Script' action. The command is run within the Bash shell /bin/bash if that matters: ...
racl101's user avatar
  • 453
33 votes
4 answers
134k views

How to uninstall Git from the command shell?

I currently have installed git --version git version 2.7.4 (Apple Git-66) At this path which git /usr/bin/git In a previous answer How to uninstall Git? it was suggested to run the uninstall.sh,...
Dambo's user avatar
  • 433
26 votes
2 answers
166k views

How do I escape the git commit window from OS X terminal?

I am just learning git and the terminal and I wanted to make a test commit but I cannot seem to be able to escape the text editor window to save the commit
Lukadadiani's user avatar
26 votes
7 answers
32k views

Where did /usr/bin/git come from?

I have a small problem. At some point I used git but I don't remember if it was installed by default on Lion. Here is the version and path of git: $ git --version git version 1.7.5.4 $ which git /...
cromestant's user avatar
25 votes
4 answers
7k views

Git Config Error in Xcode

When I opened xcode and tried to make a macosx app, this weird message came up. Is this a glitch or a virus, as Apple wouldn't say something like this. It does not look like a system message.
Charlie McMahon's user avatar
23 votes
6 answers
26k views

Git auto-completion not working on Mac OSX 10.11.5 El Capitan

I have tried the examples found here to get Git auto-completion working on El Capitan, however none of the examples work for me. I installed bash-completion with Homebrew (brew install bash-...
crmpicco's user avatar
  • 1,081
22 votes
4 answers
18k views

error: There was a problem with the editor 'vi' when using it with git

I have this strange problem with using vi as the editor for git commit -a. Normal flow is: I type git commit -a, vi appears, I enter my commit message, and then :wq to save & exit from vi. This ...
houbysoft's user avatar
  • 9,072
21 votes
5 answers
24k views

git is broken: "Agreeing to the Xcode/iOS license requires admin privileges, please re-run as root via sudo"

My install of git seems to be broken, and it looks like somehow my Developer Tools are broken. When I try to run git, I get this error. This happens both with /usr/bin/git and /opt/local/bin/git (...
Rich's user avatar
  • 1,242
17 votes
6 answers
18k views

Completion for git commands

I recently switched from using an Ubuntu box for the last 7 years to a Mac. I have read other posts like Switching from Ubuntu to OS X and I'm lost and What is the difference between iTerm2 and ...
rgamber's user avatar
  • 465
17 votes
4 answers
32k views

Installing git on OSX 10.8 without Xcode

I'd like to setup my dev environment on my girlfriend's iMac, but she's not cool with me wasting 3GB of space, which is what Xcode takes up. She also doesn't want to/can't upgrade past 10.8 because ...
MattDiamant's user avatar
16 votes
3 answers
15k views

AMSupportURL* "is implemented in both"?

I get the below error message when I run git for the first time after a reboot: objc[728]: Class AMSupportURLConnectionDelegate is implemented in both ?? (0x1eff3a7a0) and ?? (0x1188402b8). One of the ...
frank cedar's user avatar
15 votes
4 answers
28k views

How do I rename a file in git that differs by case only?

In my git (Xcode) project, I committed a filename with improper case. Now I went to try to rename it, but when I commit, I get: fatal: Will not add file alias 'MyProject/MyFile.h' ('MyProject/...
Ken's user avatar
  • 4,132
12 votes
1 answer
13k views

Ownership of the .config folder in home directory

Who is supposed to be the owner of the .config directory under user's home folder? On my machine it appears to be owned by the system user and it is only readable by that user. Several programs, ...
GeekInDisguise's user avatar
11 votes
3 answers
6k views

Git plug-in for Finder?

Is there a plug-in for the Finder which lets me see and do all my git-related stuff? There are many different apps or the terminal which change the prompt to show that files are “dirty” in terms of ...
wildebeesty's user avatar
11 votes
2 answers
9k views

Homebrew installation requests to use my confidential keychain information. Should I allow it to do so?

I was installing Homebrew on my MacBook Pro (as per the instructions on this page), when the following message popped up: git-credential-osxkeychain wants to use your confidential information ...
Evan Aad's user avatar
  • 863
10 votes
1 answer
18k views

Broken Git installation on my Mac. How do I fix it?

I've had git running on my MacBook Pro (macOS High Sierra 10.13.6) for ages. I recently uninstalled Xcode because I never use it, but that seems to have broken Git and I can't figure out how to fix it....
Sharon's user avatar
  • 203
9 votes
2 answers
3k views

Show github notifications in Mountain Lion Notification Center

Simply put: Is there a way to show the notifications on github in the notification center of the new Mountain Lion?
Christian Kolb's user avatar
9 votes
2 answers
25k views

How to install Git Extension on MacOS?

I need to install GitExtension on MacOS, but I can't find any info about this. I found this link https://sourceforge.net/projects/gitextensions/ after download I get compressed folder there is ...
Sirop4ik's user avatar
  • 906
9 votes
1 answer
3k views

How to show git files in Finder?

This may be too close to a duplicate for Git plug-in for Finder?, but I'm after a tool that will merely show me whether there is a repo in the current directory, and the state of the files within. I ...
ptim's user avatar
  • 1,043
8 votes
1 answer
3k views

Homebrew - How to upgrade a HEAD forumla?

I installed libimobiledevice a few months ago with brew install --HEAD libimobiledevice, and tried to upgrade it today with brew upgrade libimobiledevice (no --HEAD because it's not an option for brew(...
Teddy C's user avatar
  • 1,628
8 votes
2 answers
2k views

revoke forbiddance to send Apple events to System Events

I have been using Gitk provided by Git provided by Homebrew with success, for several years. A couple of days ago, it suddenly prompted a security window when called. I did not allow access, hoping ...
146438's user avatar
  • 243
8 votes
1 answer
321 views

Does Mac OSX Mountain Lion autosave/versions interact badly with git?

I use git with some of my documents and wonder if the autosaved versions created by Mountain Lion could interfere (or even break) git versioning? This is important for me as I do not work on Macs ...
absurd's user avatar
  • 231
8 votes
3 answers
9k views

How to use Xcode 4 mergetool in a standalone fashion?

I sometimes have to make git merges on the console. Up to now, for resolving conflicts, I was using Xcode 3's FileMerge (you can open it on the console using the 'opendiff' command). If conflicts show,...
Ricardo Sanchez-Saez's user avatar
7 votes
4 answers
22k views

ZSH - missing git icons

Hi I've just installed ZSH and it looks awesome but git icons are still missing and I don't know what I miss. What I should do?
Błażej's user avatar
  • 349
7 votes
3 answers
29k views

How much disk space do the "command line developer tools" take up?

When I run git --version in the Terminal, I get prompted to install the "command line developer tools": What exactly do I get from these "command line developer tools", and how ...
Flux's user avatar
  • 213
7 votes
4 answers
18k views

How to remove default Git or update it?

I cant delete or rename current version of git... Even with sudo... MacBook-Pro-Kiril: $ sudo rm /usr/bin/git override rwxr-xr-x root/wheel restricted,compressed for /usr/bin/git? MacBook-Pro-Kiril:...
Markelov's user avatar
  • 223
7 votes
3 answers
6k views

iCloud drive and git repository

I have upgraded some of my Macs to Sierra. Now, I'm wondering whether I want to enable iCloud on the Document folder or not. It seems useful if it works well. I'm syncing some of the PDF files between ...
shigeya's user avatar
  • 231
7 votes
1 answer
11k views

Is git pre-installed on macOS Sierra?

I am very new to macOS, knowing Ubuntu a little bit, and am wondering whether git is pre-installed on macOS or not. Typing which -a git results in git is /usr/bin/git But when I init a test-repo ...
krahlos's user avatar
  • 73
7 votes
3 answers
1k views

Which macOS Git GUI app offers a "Split View Staging" view?

I use SourceTree as a Git GUI tool. I'm very productive with the app and find it far preferable to the command line Git interface for common tasks. Unfortunately, SourceTree is incredibly slow, buggy,...
pkamb's user avatar
  • 8,363
7 votes
2 answers
9k views

Using an external merge tool does not work on SourceTree

I am running OS X.10, Xcode 7 and SourceTree 2. When I select a conflicted file and Launch an external merge tool, there is a window that appears very briefly... and then nothing happens. I tried (see ...
Colas's user avatar
  • 2,841
7 votes
3 answers
8k views

How can I determine what is hanging git on my OS X machine?

I'm trying to do a git pull on my Mac from a local repo. It is hanging. My question is, why is it hanging and how can I stop it? That is, I'm in a repo where the "remotes" are on the local ...
Rich's user avatar
  • 1,242
6 votes
2 answers
5k views

Use downloaded Git instead of preinstalled Git

I am following the Lynda.com Git Essential Training. After he downloads and installs Git he enters which git and gets /usr/local/git/bin/git However when I do it I still get the preinstalled path /usr/...
Pierce McGeough's user avatar
6 votes
1 answer
2k views

Tell git not to use my GitHub account (Keychain) for public repositories - it's a privacy issue

Whenever some script or Git clones/pulls something from GitHub I don't wish to send my GitHub Account, if the repo is public. How to make sure I won't be authenticated with my GitHub user with ...
Sybil's user avatar
  • 3,833
6 votes
1 answer
7k views

Setting up a git (ssh) server using OS X Server

I would like to use OS X Server to set up a git server that I can ssh into from other machines on my network. I realize that Xcode Service has repository functionality built in, but I am looking for ...
JWVincent's user avatar
5 votes
2 answers
5k views

Homebrew - Upgrading software in /usr/bin

My OS X comes with a version of Git installed in /usr/bin. However, this version is older than the official stable one. I would like to upgrade it. Can I use Homebrew to upgrade this version? Or ...
Amelio Vazquez-Reina's user avatar
5 votes
2 answers
5k views

Git clone fails with "fatal: multiple updates for ref 'refs/tags/v1.0.0' not allowed" on MacOS Mojave

I did a lot of operations on my computer last night, basically updating/upgrading(?) brew, which installed a new git version, updated python, lots of stuff and today I figured I couldn't clone a ...
Vadorequest's user avatar
5 votes
1 answer
6k views

What are the downsides to using Apple Git?

In other questions, such as "How to properly update git on mac?" it is implied that Apple Git isn't as good as using separately installed versions of Git. What are the downsides to using Apple Git?
LC1983's user avatar
  • 1,213
5 votes
3 answers
9k views

Homebrew warning: "No developer tools installed" even though Xcode is installed

After installing Homebrew the "brew doctor" command returns: Warning: No developer tools installed. You should install the Command Line Tools. Run `xcode-select --install` to install them. …and I do ...
Samuel E.'s user avatar
  • 243
5 votes
1 answer
5k views

Does installing Command Line Tools for Xcode also install Git?

When I run git --version I get git version 1.7.12.4 (Apple Git-37), and it seems to be located at /usr/bin/git. I don't remember installing Git, but I did install Command Line Tools for Xcode in order ...
ivan's user avatar
  • 319
5 votes
2 answers
1k views

zsh: bus error with git on SMB volume

I regularly work with git on an SMB mounted share on my MacBook. Recently I get this error every time I try to run certain git commands: zsh: bus error git status. The same error happens with log, ...
Elliott's user avatar
  • 2,899
5 votes
1 answer
610 views

How to omit directories from Optimized Storage?

I keep my git repositories in a directory under Documents directory, which puts it in the path of iCloud's Optimized Storage. Often, I'll open a git repository to find files replaced with .icloud ...
Shazbot's user avatar
  • 153
5 votes
1 answer
8k views

How to Sync MacOS Applications + Preferences across multiple Macs without OS X Server?

Will the following work? If not, can someone propose better alternaives to solve this problem? Summary problem: I want to sync multiple MacBook Air's, Pro's and possibly Mini's with the same user-...
5 votes
1 answer
1k views

How I can install a Homebrew recipe maintained in a separate git repository outside of /usr/local/Library/Formula?

I'm writing a quick Homebrew formula for my own private purposes (it's unlikely to be shared). I'd like to install it , but would prefer not to maintain my own local fork of Homebrew, but instead ...
Andrew Ferrier's user avatar
5 votes
0 answers
619 views

How to configure Xcode to fetch swift dependencies over ssh using a private key which is stored on a Yubikey ( HSM , gpg --card-status )

Problem currently is that I find no way to simply configure or instruct Xcode to check out source code or dependencies over git+ssh using ssh agent. Does Xcode at all supports using the ssh-agent? ...
norrs's user avatar
  • 151
5 votes
0 answers
239 views

pinentry implementation with fingerprint sensor support

Currently, I am using Pinentry Mac from Xcode on my system to sign git commits. For this, I am having to input my passphrase each time I am waiting to sign a commit. Seeing that my MacBook Pro has a ...
Empty2k12's user avatar
4 votes
2 answers
1k views

How do I stop GitHub Conduit?

How do I stop GitHub Conduit and keep GitHub.app from reinstalling the job in launchd?
CyberSkull's user avatar
  • 2,557

1
2 3 4 5