Questions tagged [git]

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

Filter by
Sorted by
Tagged with
0
votes
2answers
30 views

How to set Xcode as core.editor in git?

My current git config core.editor returns dreamweaver which I set up two years ago from inside the app(IIRC), and now I don't use it. I am receiving error while amending the author of the last commit. ...
3
votes
3answers
2k views

Does Mac OS X's bash read scripts for all users (tab-completion scripts) from /opt/local/etc/bash_completion.d path?

I stumbled upon some instructions in the book "Pro Git" It suggests: Download this file : https://github.com/git/git/blob/master/contrib/completion/git-completion.bash If you use the Bash shell, ...
1
vote
1answer
23 views

My ssh key won't work on my personal wifi network. How do I fix it

I have a macbook pro that I'm using for work. So I set up an ssh key for use with a bitbucket team account. My work email is a gmail account. But my bitbucket account is a team account with same ...
0
votes
0answers
14 views

Are there any GUI Git clients that support diff with —color-words?

I use Git for both programming and writing projects, the latter using LaTeX. All the GUI clients I’ve tried on the Mac (e.g. Tower, sourcetree) do a fine job with traditional line diffs. But for ...
9
votes
2answers
12k 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-...
0
votes
1answer
27 views

Slow read performance in Mac OS X terminal, with external encryption enabled hard drive

Anyone experienced really slow performance with Mac OS Extended (Journaled, Encrypted) file systems? I have git LFS project on my hard drive and for some reason even as simple as cd project-folder ...
14
votes
4answers
31k 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,...
4
votes
1answer
887 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....
346
votes
11answers
179k 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 ...
0
votes
1answer
170 views

install git without admin/sudo or make

I have a MacBook Pro without admin or sudo access, but I need git. XCode is not installed, so I don't have access to make, so I cannot build from source. /usr/local is locked down, so I cannot use ...
5
votes
2answers
2k 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 ...
1
vote
1answer
45 views

Is GitHub working for you right now or is it an OS X 10.7 Firefox browser issue?

EDIT: To quickly answer my question, see the bottom edit. I forgot my GitHub account, so I tried reset my password. However, I'm not receiving any email. I tried it again, but to no avail. So I ...
3
votes
2answers
1k 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 ...
40
votes
5answers
7k 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 ...
4
votes
2answers
751 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 ...
115
votes
11answers
125k 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 ...
4
votes
1answer
48 views

How to have 2 Github SSH accesses?

I have a personal account ericpersonal and a company account ericcompanyabc (they forced me to even though they could have add my personal GitHub account to their repos) on github.com. I'm using a ...
6
votes
3answers
209 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,...
1
vote
1answer
901 views

Install SublimeHighlight plugin on Sublime Text 3

I'm trying to copy my code from Sublime Text 3 into my Word document in RTF format with colors in tact by using this plugin: https://github.com/n1k0/SublimeHighlight The instructions say: Sublime ...
0
votes
1answer
325 views

How to get p4merge to come up when I do git mergetool and not filemerge

I'm on macOS Mojave, Git version 2.19.0 When doing git mergetool, instead of p4merge, filemerge comes up. Searched my entire drive and the only instance of p4merge I see is in /Applications/...
1
vote
1answer
330 views

Install Git on OSX 10.8

ALL, My project is located on GitHub which recently switched to using TLS1.2, which is incompatible with the OpenSSL version OSX 10.8 ships with. So I tried to build Git from sources. I downloaded ...
1485
votes
7answers
919k views

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

After upgrading to macOS Sierra (and later Mojave), I tried to run git from Terminal but it kept giving me the following error: xcrun: error: invalid active developer path (/Library/Developer/...
1
vote
1answer
968 views

How to update Git (actually remove apple git and install new one via brew)?

I want to update git. I find this article: On one of the first steps, I get a problem. When I tried to backup currently installed git I got permissions restriction. It's ok it must be some OSX ...
0
votes
2answers
2k views

“Permission denied (publickey)” every time I try to push to git

I've recently faced a problem: each time I try to push to git repository (in my case, Bitbucket), I get that error: $ git push origin master git@bitbucket.org: Permission denied (publickey). fatal: ...
2
votes
1answer
577 views

Executing commands in PS1 on macOS Sierra not working?

Recently I had to switch to a Mac for my work. Since I'm used to Unix-like environments, I brought over my PS1 prompt generator from Ubuntu. I had enough trouble customizing the terminal for it to ...
4
votes
4answers
1k views

Git not working over AFP

I've got a git repository on my file server which I'm connecting to via AFP. Whenever I try to do a git operation on the shared repository, such as staging a file, I get the following error message: ...
0
votes
1answer
550 views

Run Xcode `git pull` and `git Push` commands in terminal

The question is clear: How do I perform Xcode's commands for git pull and git push via terminal? Reason: I've set up multiple git accounts and ssh (Reference). Someone told me the reason why one of ...
0
votes
1answer
2k views

Why are ssh and git push not working?

So recently, I have noticed that commands like ssh, git push, and git pull sometimes stop working. They only start working after I restart my computer. The interesting thing is that I can still browse ...
1
vote
2answers
887 views

Cannot launch gitk on Mojave: mapped file has no cdhash?

I had a working version of git + gitk installed via homebrew on MacOS High Sierra. After I upgraded to Mojave, I can no longer start gitk. It fails with the following error, repeated 105 times: ...
1
vote
0answers
149 views

Why do I keep getting this error message: “git was not detected on system path”

I'm not familiar at all with coding or using rstudio since this is the first semester im taking it. Basically everything was working fine, but when i updated to mojave, this error started popping up ...
1
vote
2answers
607 views

I need Git. Is it better to install command line tools (183mb) or `brew install git`?

I think that it is better to install Git from Homebrew: Less size Install only what I need - I do not need LLVM compiler, for example. Faster install All packages in one place No need to re-install ...
2
votes
1answer
2k views

Is it normal to have the home directory under git?

I've just found out that my home directory is under the supervision of Git, i.e. there's a .git folder in my home directory. My questions are: Is it normal that my home directory is under Git? If ...
1
vote
2answers
436 views

Get iOS push notifications from GitHub

Is there a way receive push notifications from GitHub on my iPhone? I'd like to receive updates about pull requests and comments for my hosted projects, but the site only offers notifications via ...
4
votes
0answers
56 views

How to sync keyboard shortcuts setting of Mac OS X from one computer to another? [duplicate]

I have two Macbooks, and I set up many keyboard shortcuts for different applications. Now I am trying to sync these settings from one Macbook to another through git, which introduced by Atlassian. ...
1
vote
2answers
45 views

How to get git update-index working with macOS?

I installed git with brew install git Now I want to use the update-index parameter, but that doesn't work because git-update-index is not installed. How can I install this via Homebrew or another ...
4
votes
2answers
606 views

Sync files between two different folders on a single Mac

I am looking for a solution to sync files within different folders on a single Mac. The files are tracked under Git version control system, so I can't use aliases.
11
votes
4answers
18k 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 ...
6
votes
3answers
3k 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 ...
26
votes
4answers
6k 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.
0
votes
1answer
36 views

Running multiple git ssh logins via Terminal

I recently set up an SSH key for by Bitbucket account, which works very nicely. But I also have other git repos like Github, GitLab (non ssh at the moment) and I came to push to one of those other ...
4
votes
0answers
72 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 ...
0
votes
2answers
3k views

git not works after update to El Capitan

I have just updated my OS X to El Capitan. In previous version I have git installed with Xcode (as it was recommended settings). After updating I could not use git. git command shows. xcrun: error: ...
0
votes
3answers
8k views

How to fix git path after MacOS Sierra update?

I have just upgraded from OS X 10.11 "El Capitan" to 10.12 "Sierra", and when I open intellijIdea, I get the following error: Can't start Git: /usr/bin/git Probably the path to Git executable is ...
1
vote
1answer
408 views

Github and credential-osxkeychain delete access

Today I went to push to my Github account and got an authentication error. Surprised, I looked in Keychain Access to see if there was anything wrong as I had setup git to use git-credential-...
2
votes
1answer
76 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 ...
1
vote
2answers
6k 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:...
3
votes
1answer
3k 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, ...
0
votes
1answer
32 views

Custom group in characters viewer

I am trying to start with Gitmoji and so far it takes me some time to find the appropriate emoji in the Characters viewer on macOS. Is it possible to define custom group of characters? There is ...
1
vote
2answers
3k views

Git is very slow on OS X

Whenever I use anything Git related on my MacBook (brand-new Macbook Pro with El Capitan), it takes almost a full minute for each command. I did a simple GIT_TRACE=1 git stash and got back this: ...
15
votes
2answers
60k 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