Questions tagged [git]

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

Filter by
Sorted by
Tagged with
0
votes
0answers
10 views

Howto revert Homebrew 'git fetch --unshallow'?

I searched homebrew and he gave me this message: Warning: homebrew/core is shallow clone. To get complete history run: git -C "$(brew --repo homebrew/core)" fetch --unshallow I run the advised ...
1
vote
1answer
20 views

Trouble setting Sublime Text as default editor for entering Git commit message [closed]

I am learning git command-line. I wish to set Sublime Text as the default editor for entering commit message, when I run the git commit command from Terminal. But when trying to do so, I am running ...
0
votes
1answer
56 views

Unexpected question 'enter PIN for “Kryptonite iOS”' while doing git pull after updating to MacOS Catalina 10.15.4

Most of my Bitbucket git repos can't be pushed/fetched after upgrading to MacOS 10.15.4. All git origins are SSH (not HTTPS). I get this question in terminal when doing git pull and other commands: ...
2
votes
1answer
191 views

Git hangs with a ssh remote URI after 10.15.4 update

After updating to Catalina 10.15.4, git started hanging indefinitely when trying to push or pull from a repo that was previously accessible. $ git push origin master ^C The URL for origin looks like:...
0
votes
2answers
28 views

How do you git fetch all repos in a folder?

I keep all the repositories I work on in a folder on my machine ~/Code, and I want a script to execute git fetch && git status against each of the repos in that folder. I imagine that, if it’...
0
votes
0answers
31 views

Internet issues on macos while using services such as git, docker, pip

I have a macbook pro 16" running on macOs Catalina(version 10.15.3). The laptop is owned by my firm and has 3 user accounts. One is admin which i cannot access, second is also an admin account(of ...
0
votes
3answers
101 views

Files created by Terminal are not visible in my Finder

So I've been trying to create a text file using Git, I punched in the command "touch home.html", then I punched in the command git "add home.html", then I input "git status" and the file doesn't want ...
1
vote
1answer
257 views

brew search generates mail notification “You recently used a password to access an endpoint through the GitHub API using Homebrew/2.2.2”

I got a mail from GitHub: You recently used a password to access an endpoint through the GitHub API using Homebrew/2.2.2 (Macintosh; Intel Mac OS X 10.15.2) curl/7.64.1. We will deprecate basic ...
0
votes
1answer
76 views

How to restore default Apple Version of Git after renaming it in Mac OS Mojave and linking git to homebrew version?

I wanted Mac OS to use my homebrew version of git after brew install git. So I mistakenly renamed my Apple Default git by doing: $mv /usr/bin/git /usr/bin/git~apple $ git --version git version 2.25.0 ...
1
vote
1answer
24 views

Git stored credentials work locally but don't have effect if logged into the machine via SSH

I have a remote macOS machine with git and GitHub Desktop installed, as well as my SSH public key. If I connect to the machine via Screen Sharing, open a shell window and try e.g. git pull in my ...
1
vote
0answers
20 views

How do I store an automator action in version control (git)?

I just created an Automator 'application' action and it works fine but I want to have version control of it. Automator creates a bundle that seems to be a bunch of XML and resources which is a pretty ...
2
votes
2answers
3k 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 ...
0
votes
1answer
21 views

Can you install NPM and Git under a standard user account?

Currently all users in my environment run as standard users. We now have developers starting that will need access to tools such as NPM and Git. Is it possible to install these tools and limit to ...
2
votes
0answers
44 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? ...
2
votes
1answer
24 views

Using Finder to copy files by value instead of the files' reference

I want to copy a few files from one directory of a git repository branch to another branch that doesn't have the files. With Windows, you can copy the files and they are saved to the clipboard as they ...
3
votes
1answer
170 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 ...
2
votes
0answers
634 views

“Waiting for your editor to close the file” when trying to use Sublime Text 3 as Git editor

I'm trying to use Sublime Text 3 as Git's editor. I ran this: sudo ln -s /Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl /usr/local/bin/subl Then this: git config --global core....
1
vote
2answers
198 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. ...
1
vote
1answer
38 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
1answer
129 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 ...
4
votes
1answer
2k 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....
1
vote
1answer
58 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 ...
0
votes
1answer
394 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

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 ...
7
votes
3answers
390 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
2answers
1k 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
318 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
2answers
723 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
2k 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 ...
1
vote
2answers
1k 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 ...
4
votes
0answers
86 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
64 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
871 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.
40
votes
5answers
8k 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
42 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 ...
5
votes
0answers
89 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
541 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
433 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 ...
4
votes
1answer
146 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 ...
6
votes
1answer
5k 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
105 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
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: ...
4
votes
1answer
53 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 ...
4
votes
1answer
4k 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 ...
1
vote
3answers
12k 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
297 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
163 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
1k 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
290 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
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 ...