Questions tagged [git]
popular version control and how it gets used on OS X and iOS
201
questions
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 ...
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 ...
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 ...
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 ...
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:
...
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,...
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
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
/...
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.
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-...
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 ...
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 (...
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 ...
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 ...
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 ...
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/...
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, ...
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 ...
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 ...
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....
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?
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 ...
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 ...
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(...
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 ...
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 ...
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,...
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?
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 ...
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:...
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 ...
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 ...
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,...
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 ...
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 ...
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/...
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 ...
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 ...
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 ...
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 ...
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?
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 ...
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 ...
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, ...
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 ...
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 ...
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?
...
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 ...
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?