Tag: osx

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 on mac osx: how to push filename cases to origin?

I have changed the case of some directories in my git repository. Then I pushed them and noticed the cases where not updated. Then I found this question: git mv and only change case of directory I have followed the advice to use: git add -A git commit –amend -m ‘updated cases’ git push origin […]

git pull origin master returns fatal: invalid refspec

Here is the problem: Whenever I do $ git pull ‘https://github.com/username/reponame.github.io.git’ followed by the url I get no problems but when I do git pull origin master ‘https://github.com/username/reponame.github.io.git’ followed by the url it returns fatal: Invalid refspec ‘https://github.com/username/reponame.github.io.git’ What does this mean and how should I go about fixing it?

sh: parse_git_branch: command not found

I have root enabled on osx El Captain. I tried some of the solution already provided on stackoverflow and supersu but couldn’t fix the error. I exported function parse_git_branch() to .bash_profile from .bash_prompt but I still get this error. I don’t know bash scripting so I have no idea what’s going on and what is […]

Setting Visual Studio Code as my Mac's default editor (including editing Git commits)

I am trying to configure my Mac Book Pro (OSX El Capitan 10.11.1) to use Visual Studio Code as its default editor. I have created a ~/.bash_profile file with the following two lines vscode () { VSCODE_CWD=”$PWD” open -n -b “com.microsoft.VSCode” –args $* ;} export VISUAL=open\ -n\ -b\ “com.microsoft.VSCode” This works for some things: I […]

How to get over Homebrew Git conflicts?

I installed Homebrew. “brew –prefix” is /usr/local. I’ve now mistakenly done things to the master branch of my local Brew Git repo that endlessly conflict with “brew update”. I’d like to throw away or ignore my local changes. Normally I’d just rm -rf repo and re-clone, but I don’t think rm -rf /usr/local is wise. […]

git: error: SDK “macosx” cannot be located

Just updated my machine to Yosemite. I’m getting this error from Git now: git: error: SDK “macosx” cannot be located I’m able to run git status with no issue, but anything like git add seems to work, but then throws this error. Command Line Tools are installed, I tried reinstalling Git.

Git installation issue in Mountain Lion (OS X 10.8)

I just installed new Mountain Lion (OS X 10.8) on my MacBook Air and then trying to install and configure git on my mac. But, surprisingly git was not being opened or installed ! Why it is not being opened or installed?

npm ERR! install Couldn't read dependencies on mac

I am trying to support the how to crack a interview repository https://github.com/gaylemcd/ctci/tree/master/javascript/lib/data-structures I am trying to crack the interviews for JS position They are using mocha and chai, so I am trying to commit the code in JS I am trying to execute the below steps but I am failing at the below step, […]

.gitignore not working for file in subdirectory

This is the content of my .gitignore file, which is at the root of my repository: # grails stuff to ignore target *.iml *.ipr .idea *.log *.swp # vi swap files .DS_Store # OS X Finder cache files # cocoapods stuff to ignore Pods Podfile.lock The .DS_Store file in my project root directory is correctly […]

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