Tag: osx

magit doesn't recognize repo, can't find git

Magit doesn’t recognize my git repos. I think it can’t find my git. When i type M-x magit-version i get Magit 20170322.1550, Git (unknown), Emacs 25.1.1, darwin I am using mac osx. my git is here: $ which git /usr/local/bin/git $ git –version git version 2.7.1 And i can use git commands normally outside of […]

How to preserve colours rendered by git_ps1 with a multiline prompt?

I have the following .bash_profile #Change alias for ls to include colours alias ls=’ls -Gh’ #Enable git branch completion source ~/git-completion.bash #Allows git information to be visible in prompt source ~/git-prompt.sh GIT_PS1_SHOWDIRTYSTATE=1 GIT_PS1_SHOWCOLORHINTS=1 # ANSI colors: http://www.tldp.org/HOWTO/Bash-Prompt-HOWTO/x329.html RED=”\[\033[0;31m\]” YELLOW=”\[\033[0;33m\]” GREEN=”\[\033[0;32m\]” CYAN=”\[\033[0;36m\]” LIGHT_GREY=”\[\033[0;37m\]” DARK_GREY=”\[\033[1;30m\]” NO_COLOUR=”\[\033[0m\]” ################################## #Configure multiline prompt # Prompt appearance should be: #[RED]user@host[\RED] [CYAN]working_directory[\CYAN] […]

Pre-commit hook for git to play sound clip

I need a precommit hook that will play a sound clip (Specifically “Push It” by Salt-n-Pepa) Any thoughts on how I can get this done?

Cleaning up empty file references from collaborated Xcode projects

What are these empty shells in my Xcode filesystem and what’s the procedure to remove them safely? Also did a search for duplicate refs in the Xcode File Navigator but didn’t find any. Sidenote: Project is collaborated via git and I suspect that has something to do with their presence. Occasionally after merging feature branches […]

Git changes files on Mac OS X

I just cloned an old repository containing some linux kernel modules (don’t ask). If I clone on a linux machine, everything is fine. On my Mac however, someone (presumably Mac OS X) makes binary changes to the modules. I already disabled autocrlf. Here’s the output of git diff -p –stat directly after clone: …/kernel/net/ipv4/netfilter/ipt_ecn.ko | […]

Setting up git after fresh install

I’m planning to install mountain lion on my macbook pro and erase everything in my hard drive too. I currently have git installed with a few repos and my ssh key is connected with remote repos as well. I’m not sure how to go about restoring everything after the fresh install of osx. I am […]

How can I get calculate for a git repo on OS X

I tried using gitstats (http://gitstats.sourceforge.net/), but the damn thing doesn’t generate graphs. It requires gnuplot, which requires a bunch of other libs to be installed, none of which have a native OS X port. I’ve spent 4 hours trying to figure out how to install libpng to install libgd, to install lib… forget it. Anyone […]

How do I completely remove Github for Mac along with its Git installation and all?

I’m new to OSX, so I don’t want to just go around deleting things without really knowing what’s up. What’s the best way to go about obliterating Github and its Git from my machine? Thanks!

Running git init from within Google Drive dir

I want to run git init from within Google Drive because my project folder is there but every time I do I get: MacBook$ cd Google Drive -bash: cd: Google: No such file or directory

Pushing a branch to a remote server fails

I have a project which uses Git on a remote server. I installed SourceTree for Mac to manage it. I also have a .ssh folder with the private in the root directory where I keep all my projects and the public key is in the server. I was able to clone the project successfully and […]

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