All Questions
51 questions
2
votes
1
answer
1k
views
Brew can not find git
I managed to move brew and php from an M1 silicon to an Intel Mac.
The php is broken due to different processors. And I would resolve that by installing a new php version with brew. This isn't about ...
2
votes
1
answer
7k
views
What exactly are "git pack objects"? Why are they so huge in the "homebrew-core" repo? We are talking about half a GB of metadata
I am a Homebrew user and have noticed very large files. It seems to have something to do with git, I searched with Brave Search for "Git pack format" but didn't understand exactly why they ...
0
votes
2
answers
14k
views
fatal: unable to access ... Recv failure: Connection reset by peer
i run this in terminal
git clone https://gitlab.com/azzammuhammadnaufal/nyoba.git
and out this
Cloning into 'nyoba'...
but, i get this message
fatal: unable to access 'https://gitlab.com/...
1
vote
1
answer
1k
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-...
2
votes
2
answers
5k
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
22k
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 ...
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 ...
0
votes
0
answers
231
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 ...
1
vote
1
answer
685
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
592
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
2
answers
2k
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. ...
0
votes
1
answer
911
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 ...
10
votes
1
answer
20k
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
3k
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 ...
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 ...
0
votes
1
answer
94
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 ...
2
votes
1
answer
226
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
2
answers
4k
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
[email protected]: Permission denied (publickey).
fatal: ...
4
votes
1
answer
100
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 ...
7
votes
1
answer
12k
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
1
answer
3k
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 ...
2
votes
1
answer
1k
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 ...
0
votes
1
answer
820
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 ...
1
vote
0
answers
344
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 ...
4
votes
1
answer
3k
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 ...
27
votes
2
answers
173k
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
23
votes
6
answers
27k
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-...
1
vote
1
answer
163
views
Run shell and type output
I am using iTerm2. I would like to have a keyboard shortcut which runs a command and types the output at the current cursor.
Example: I have a function branchName which returns/prints the current ...
1
vote
1
answer
1k
views
update git repository with apple script
I want to update my git Bitbucket online storage with apple script. This is the code that works in Terminal, but not when i run apple script.
cd /Users/mainuser/Desktop/Projects git add -A
git commit ...
0
votes
1
answer
1k
views
How to cd into my local git repo from an AppleScript?
I am running a Mac using OSX Yosemite v10.10.5.
I want to push my local git repo to my remote using AppleScript.
So the git code would be:
shell
git init
git add README.md
git commit -m "first ...
7
votes
4
answers
23k
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?
1
vote
1
answer
2k
views
How do I make git credential-osxkeychain work correctly when I'm connected to a machine via SSH?
I setup a build machine to check out sources from Github by caching the login credential in the keychain using instructions from: https://help.github.com/articles/caching-your-github-password-in-git/
...
0
votes
1
answer
2k
views
Homebrew won't link git
I am trying to enable autocomplete for git on my mac (currently running El Capitan) but I am having troubles with Homebrew.
So far, I have installed bash-completion and added the lines in my ...
0
votes
1
answer
201
views
git commit editor error 'subl -n -w'
On my ElCapitan, I have vim installed but my git commit is giving errors:
$ git commit
subl -n -w: subl: command not found
error: There was a problem with the editor 'subl -n -w'.
Please ...
1
vote
2
answers
6k
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:
...
1
vote
1
answer
635
views
Accidentally deleted files using GNU find -delete - how to recover?
I was playing around with OSX find and GNU find from findutils (v 4.4.2) package for learning purposes. GNU find has a -delete option, which is self-explanatory. What isn't, however, is that "Use of -...
0
votes
2
answers
999
views
Dropbox vs Github for dotfiles sync? [closed]
For the last few years I've been using Dropbox to sync my dotfiles. For zsh, oh-my-zsh, emacs settings etc.
More people seem to be using Github for this. What are the advantages and disadvantages in ...
1
vote
1
answer
3k
views
Terminal git:master after oh-my-zshell installation
I just installed oh-my-zshell.
And my terminal looks like the image now. What is git master there?
I installed oh-my-zshell on other macs, the look is not like that.
I am on the root here BTW.
Can ...
2
votes
1
answer
6k
views
Using kdiff3 as default git diff viewer on Mac OS
I have kdiff3 installed on my Mac (Version 0.9.97, 64 bit). Here's my ~/.gitconfig:
[filter "media"]
required = true
clean = git media clean %f
smudge = git media smudge %f
[user]
...
2
votes
1
answer
4k
views
How to use proxy in terminal [duplicate]
Department of Telelcom (India) just blocked some sites in India.
But, only Government-based ISPs block access those sites. Other ISPs still have these sites working. One of those sites is Github and ...
3
votes
1
answer
2k
views
Need help with update to latest Git using Terminal
I was trying to update to the latest Git version in my Terminal. I've no clue what I did and all I remember was that I removed the previous installed Git I think because when i run the following ...
3
votes
1
answer
21k
views
How to uninstall Git?
Anyone know how to uninstall Git?
I would like to uninstall Git using the Uninstall.sh file that came in the git-2.0.1 install bundle.
I am unable to find the Uninstall.sh file using Terminal. When ...
2
votes
1
answer
1k
views
Updating and running Git through Homebrew instead of XCode
On my new 2014 Mac (OS X 10.9 Mavericks), I have just installed Git using Homebrew. In order to install Homebrew, I had to download and install XCode 5. So now, when I enter the command which git, I ...
3
votes
3
answers
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, ...
2
votes
3
answers
569
views
Defining some global GIT settings to be automatically inherited
Sysnopsis
Coming from a Linux background I still find Apples' modifications to the Unix hierarchy somewhat confusing. Nevertheless these subtle changes make it difficult for me to quickly do what I ...
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 ...
5
votes
3
answers
11k
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
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-...
25
votes
4
answers
20k
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 ...
485
votes
16
answers
320k
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 ...