Tag: osx

git branch switch takes half a minute?

Got an more powerful and fresh machine from work, starting installing dev tools and this is simply nightmare, I’ve never ever had performance issues with git on the old machine. Here it is beyond reason: ons-mbp:spec ALE$ time git checkout fsfs Switched to branch ‘fsfs’ real 0m30.080s user 0m0.007s sys 0m0.006s ons-mbp:spec ALE$ time git […]

Implement .gitignore behavior in a shell script?

I’m writing a shell script that syncs files and I want to give users the ability to exclude certain files from syncing by creating a .syncignore file similar to Git’s .gitignore file. According to the gitignore documentation, and my own experiments, these exclusion rules are more complicated than a simple glob match. Some examples: If […]

SSH key stop working on MAC OS Sierra 10.12.3 in source tree

Source tree was working fine using SSH but after upgrading my mac to ‘OS Sierra’ it stop working. Giving Error Permission Denied. Please Help

Android Studio: SDK location changes for same project using Mac (OSX) and Windows

I am working on an Android Studio project where my team members use Windows and I use OSX. The problem is that when I pull new code from git and then open the project, I get all sorts of changes based on the Mac’s SDK location: First a notice when opening the project: git diff […]

How to “un-git-ify” my HD

So a few months ago, I apparently created a local repository, in the form of my user folder on my hard drive. I did this using some fool’s attempt at a Git101 documentation, and as a result I currently have 168,352 pending/unstated changes. Is there a way to not only remove the git bookmark (from […]

Where is .gitignore_global saved on OS X?

I have created a .gitignore_global file by running git config –global core.excludesfile ~/.gitignore_global However, I can’t find the file in question in my file system? Where was it saved?

Using 'git send-mail', but I am getting an error

I am trying to use git send-mail, but I am getting this error: Can’t locate Net/SMTP/SSL.pm in @INC (@INC contains: /Library/Developer/CommandLineTools/usr/../Library/Perl/5.16/darwin-thread-multi-2level /Library/Developer/CommandLineTools/usr/share/git-core/perl /Library/Perl/5.16/darwin-thread-multi-2level /Library/Perl/5.16 /Network/Library/Perl/5.16/darwin-thread-multi-2level /Network/Library/Perl/5.16 /Library/Perl/Updates/5.16.2 /System/Library/Perl/5.16/darwin-thread-multi-2level /System/Library/Perl/5.16 /System/Library/Perl/Extras/5.16/darwin-thread-multi-2level /System/Library/Perl/Extras/5.16 .) at /Library/Developer/CommandLineTools/usr/libexec/git-core/git-send-email line 1232. I use Mac OS X v10.9 (Mavericks) recently upgraded from Mac OS X v10.7 (Lion)!!!

Different versions of Git on Mac OS Yosemite

I guess Git on my macbook was of version 1.8.4, because I tried git –version git version 1.8.4 echo $PATH /usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin whereis git /usr/bin/git later I try to upgrade the latest version of Git to 2.0.1, I download and install from http://git-scm.com/download/mac Since this installer installs Git to /usr/local/git, and append the path to $PATH, […]

GIT – how do I copy SHA without mouse on OSX?

On OSX, often I go to the git log in order to find a commit, usually a few back, copy it with my mouse, then rebase off of that. How can I do this easily without using my mouse or memorizing it?

Install Git Client on OS X without admin rights

I need to run a git client on an OS X 10.6.6 machine to which I don’t have admin rights. Now unfortunately, the installer from http://code.google.com/p/git-osx-installer/ has no option for a local install, so it just doesn’t work without having an admin account. What is the fastest / easiest way to install git, e.g. in […]

Git Baby is a git and github fan, let's start git clone.