Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [git]

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

0
votes
2answers
117 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
29 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 ...
0
votes
0answers
68 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/...
0
votes
0answers
22 views

Connect iOS Git Interface to Mac Using SSH

I recently installed an iOS app, called Working Copy, to manage my GitHub repositories offline or on my iPad (With connection). However, this only allows me to edit my projects, not run them. I ...
1
vote
1answer
57 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
2answers
162 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 ...
3
votes
0answers
33 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
35 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 ...
2
votes
2answers
165 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.
26
votes
4answers
4k 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 ...
0
votes
1answer
29 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
59 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 ...
1
vote
1answer
191 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-...
1
vote
1answer
145 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 ...
2
votes
1answer
37 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 ...
2
votes
1answer
677 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, ...
2
votes
1answer
71 views

How to allow an AppleScript terminal push as raw code instead of executable?

Locally in the terminal after creating a file named foobar.scpt I go to cd the location of the repo locally and I run git add . I then commit the file using git commit -m "Adding foobar.scpt" ...
0
votes
2answers
777 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: ...
4
votes
1answer
35 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 ...
3
votes
1answer
1k 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 ...
0
votes
3answers
5k 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 ...
0
votes
1answer
181 views

Is there a Git GUI client for OS X Lion (10.7.5) in 2017?

I've been looking for a Git Desktop client. I'm a high school student with an old early 2008 white MacBook. Its maximum OS is Lion. My hard disk is too small to effectively use two partitions with ...
1
vote
1answer
72 views

How can I label things in the Dock?

I have two XCode projects I open regularly, so I added them to the Dock. Unfortunately, they're not labeled. Hovering doesn't help, since it shows the same name. In fact, they're two different Git ...
1
vote
1answer
725 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 ...
1
vote
1answer
155 views

Homebrew git reporting older version

I have just upgraded git. It's now a symlink to the Cellared most recent version. $ ls -l `which git` /usr/local/bin/git -> ../Cellar/git/2.14.1/bin/git However $git --version git version 2.11.0 ...
0
votes
1answer
860 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 ...
3
votes
1answer
357 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 ...
2
votes
0answers
280 views

Xcode 8.3.3: Unable to push to repo using ssh key

I have my github repo setup with ssh key to access it: pull/push. With command-line git commands it does flawlessly. But I can't push with Xcode. I don't have any passphrase with my private key. ...
0
votes
1answer
390 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
29 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 ...
0
votes
1answer
76 views

How to download to `GitHub Desktop`

I have downloaded and installed GitHub Desktop to my Mac and it shows a couple of my projects. Unfortunately I seem to be unable to use it to download anything. The most recent try I went to https://...
5
votes
1answer
1k 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
2answers
238 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 ...
0
votes
1answer
471 views

SourceTree: how to show commit information panel if once hide?

On one of my machines, I have somehow hidden the panel which shows commit information, such as the commit hash and the full commit message. I'm sure it's just a setting somewhere to bring the commit ...
4
votes
1answer
2k 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?
4
votes
1answer
1k 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 ...
2
votes
0answers
440 views

Why is git so slow on El Capitan

Rebases and stashes are noticeably, painfully slow. This doesn't seem to happen with the outdated version of git installed by xcode - but the macports version and the version installed from git-scm....
1
vote
0answers
245 views

Error: org.macports.fetch for port git returned: fetch failed

I'm having trouble updating Git under MacPorts. The problem has existed for a few days now. I uninstalled Git and now I am trying to reinstall it. There installation error is shown below. Other ports ...
1
vote
0answers
196 views

Git mergetool/difftool not opening any custom tool

I'm trying to load a difftool (in this case, vimdiff) to see file differences in Git. However, it won't load, even if I attempt to force it with git difftool -y -t vimdiff. No matter what, I can't ...
1
vote
0answers
604 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 PDF files between ...
1228
votes
7answers
702k views

macOS Mojave: invalid active developer path

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/...
2
votes
1answer
1k 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 ...
6
votes
2answers
26k 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
4answers
5k 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.
1
vote
2answers
4k 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:...
0
votes
1answer
213 views

Password dialog for ssh key not working

I am trying to test my AWS git code commit: ssh git-codecommit.us-east-1.amazonaws.com But I keep getting a mac password dialog for ssh key. I enter in my password, but I keep getting Saving ...
0
votes
2answers
638 views

Cannot uninstall git - git clone broken

I cannot clone any repository on my mac anymore. I don't know since when exactly it got broken. $ which git /usr/local/bin/git $ git clone git@bitbucket.org:myaccount/myrep.git Cloning into 'myrep'.....
6
votes
2answers
8k 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
278 views

bitbucket authentication is failing

I keep my code in bitbucket. Without warning git pull just hangs and after a long wait says to check Deleting all my keychain entries for bitbucket.org and relogging in manually didn't help ...
1
vote
1answer
348 views

Removing built-in git from El Capitan

I installed latest version of git into /usr/local/bin and change $PATH so that new version is picked up when using shell. Can I remove old version that is in /usr/bin directory ? I am afraid to do it ...