Questions tagged [git]
popular version control and how it gets used on OS X and iOS
183
questions
0
votes
0
answers
9
views
git review fails in a repo with submodules under git version 2.30.1 (Apple Git-130)
I have a repo with several submodules. Here is the git state before I try to execute git review and send my changes to the gerrit server:
▶ git status
On branch 12345_defect_name
Changes not staged ...
0
votes
0
answers
16
views
pinentry-mac fails to store password in Keychain
I'm using gpg to sign my git commits. I'm using pinentry-mac to store the password in the Keychain. This works fine on most macs. But I have one mac mini on which I get prompted again for the password ...
1
vote
1
answer
251
views
Installing Homebrew fails with "The unauthenticated git protocol on port 9418 is no longer supported"
I am trying to install homebrew to my mac with
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
but, I keep getting this
amaku@Davids-MacBook-...
0
votes
0
answers
226
views
Unable to Install Homebrew; Failed during: git fetch --force origin
I'm having an installation problem with Homebrew; it involves git
I ran the command from my terminal, M1pro, with git installed.
I tried to do use port but I was unable to install it
I tried to do git ...
0
votes
0
answers
26
views
Chrome or Mac OS automatically deletes github diffs on download
I've been trying to save a simple GitHub PR diff to my downloads folder. The moment it saves, I can't open it because it vanishes and Chrome shows "removed" on the download.
What could be ...
0
votes
0
answers
37
views
Unable to upload .jpg files to GitHub repository, solved by copypasting files once again
I have a MacBook Air M1 and experienced the following.
I was doing some coding locally in a separate folder (let's call it /dev) and some .jpg images were needed.
They were downloaded into some folder ...
0
votes
0
answers
34
views
High CPU usage by mdworker threads during and after git fetch/clone
While fetching or cloning a large repo, git utilises one full core. Additionally, there are a bunch of mdworkers which collectively utilise >3.
The files git touches live in the .git dir which ...
-1
votes
1
answer
2k
views
I have installed git from homebrew, and instead of installing it in /usr/local/bin it's in /opt/homebrew/bin/git, how can I move it?
I've changed my $PATH variable to /usr/local/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/Library/Frameworks/Python.framework/Versions/3.9/bin:/usr/bin:/bin:/usr/sbin:/sbin (previously /usr/local/bin ...
2
votes
0
answers
26
views
.git folder gets locked
I'm on a M1 Mac mini. Randomly during the day, I can't commit my work because git is unable to create the .git/index.lock file. In the Finder info the folder shows up as "Locked". I unlocked ...
0
votes
1
answer
1k
views
Problems with Homebrew - `brew upgrade` and `brew install git` result in errors
I am a novice homebrew user (on a mac), so please forgive my incompetence. I ran into some problems while exploring the basic functionality.
After executing the command brew outdated and getting the ...
1
vote
1
answer
83
views
Switching from Windows shows all files in git as modified
I don't know if I should write here or StackOverflow, but I recently switched from Windows to MacOS and plugged in the eHDD which had my website projects on there.
I forgot to push the updated code to ...
2
votes
1
answer
2k
views
How can I delete a keychain password for github and vscode?
The way of deleting keychain access codes is to open the keychain access control and right click on the code and delete which worked before .
But Now It doesn't and when I press delete nothing ...
0
votes
3
answers
83
views
inifinitely regressing "ls" drive under "Volumes"
First of all, I am aware the "ls" command means list all items in a directory.
Yesterday an icon appeared on my desktop with a picture of a drive labeled "ls". Looking in the ...
1
vote
0
answers
32
views
How to fix gitk not refreshing properly on Big Sur?
I have recently updated to Big Sur and now my favourite git graph viewer, gitk, isn't refreshing or re-drawing well on load or after certain interactions.
Gitk is written in tcl and seems to run using ...
2
votes
1
answer
146
views
Homebrew installed git not working [closed]
I installed git with Homebrew and /usr/local/Cellar/git/2.31.1/bin is supposed to be the directory where the git executable is installed. BUT none of the commands are working:
rgdgr8$ /usr/local/...
7
votes
2
answers
12k
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 ...
2
votes
2
answers
3k
views
zsh: killed git on Mac
Hi~ I am just using a Mac with M1 chip.
I just found when I tried to run
git clone ...
I got
zsh: killed git
What should I do?
I have tried to reinstall git via brew.
but it doesn't work.
git ...
3
votes
2
answers
11k
views
Unable to install git using homebrew
I am trying to install git using homebrew:
brew install git
Terminal reads:
==> Searching for similarly named formulae... Error: No similarly named formulae found. Error: No available formula or ...
0
votes
1
answer
105
views
Git user.name continuously removed/reset
At least once a day it seems that my Git global configuration value for user.name gets reset to a blank value. Of course I only find out when I go to commit and it barks at me. I've tried removing and ...
1
vote
1
answer
55
views
Apple Automator (or similar): performing workflow triggered by shutdown?
I was thinking about turning my desktop into a git repository that automatically syncs with BitBucket. The idea is that, periodically, the desktop is synced as well as automatically before it shuts ...
16
votes
3
answers
14k
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 ...
0
votes
1
answer
273
views
How do I install p4v (previously p4merge) as my git difftool on macos catalina 10.15.3
Ive found these instructions for setting up p4merge as my git difftool (I've not been able to test these instructions):
brew cask install p4merge
git config --global diff.guitool p4mergetool
git ...
1
vote
1
answer
162
views
"__git_ps1: command not found" from running "/usr/bin/env bash"
When I run $ /usr/bin/env bash (but not otherwise) I get the error: __git_ps1: command not found
I've tried updating ~/.git-prompt.sh and ~/git-completion.bash for the version of git that I'm using. I'...
5
votes
1
answer
1k
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(...
0
votes
0
answers
441
views
MacOS xcrun not downloading in Command Line Tools and existing solutions not working
See other Xcrun issues for full details. Basically git isn't working because xcrun doesn't exist in my file path Library/Developer/CommandLineTools/usr/bin/xcrun. I've tried:
xcode-select --install
...
1
vote
1
answer
143
views
How to find source formula of brew package (github repo)?
How can I find the sources and changes for a given brew package?
I'm having an issue with a package that's installed via brew on a cloud instance whose image I don't control. I'm trying to figure out ...
1
vote
1
answer
222
views
How to get p4merge to come up when I do git mergetool?
I did setup p4merge using this in my .gitconfig:
[merge]
tool = p4mergetool
stat = true
[mergetool "p4mergetool"]
cmd = /Applications/p4merge.app/Contents/Resources/launchp4merge ...
0
votes
0
answers
109
views
I have a problem to install the SETOOLKIT ON mac
I need your help.
I want to install the setoolkit on my mac, and i found this instuction on internet: https://www.cybrary.it/blog/0p3n/social-engineering-toolkit-os-x/
I followed all of these steps ...
0
votes
1
answer
91
views
Kryptonite iOS automate enter PIN
Kryptonite has the ability to read my PIN from my phone, but recently after I push to GitHub there is a prompt:
Enter PIN for 'Kryptonite iOS':
All I have to do is press enter, but this is an extra ...
1
vote
1
answer
329
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
1
answer
152
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:
...
4
votes
2
answers
2k
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:...
2
votes
2
answers
1k
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
3
answers
829
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
1
answer
640
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
1
answer
379
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
1
answer
35
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 ...
4
votes
0
answers
85
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 ...
6
votes
2
answers
16k
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
1
answer
34
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 ...
5
votes
0
answers
269
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
1
answer
55
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 ...
7
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 ...
4
votes
0
answers
3k
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
2
answers
756
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
1
answer
124
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
1
answer
572
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 ...
6
votes
1
answer
9k
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
1
answer
71
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
1
answer
2k
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 ...