Tag: terminal

Accessing commit history from github via terminal?

Need some quick help. Novice terminal user here. Trying to use these instructions: https://developer.github.com/v3/repos/statistics/#commit-activity to get commit history for a specific user. However, I don’t know what to do with this: GET /repos/:owner/:repo/stats/contributors When I replace the owner and repo with the specific names i’m using, nothing happens because I get this error in my […]

Version control Word .docx files with docx2txt with Git on Mac OS X

On Git web site there is a detailed instruction for version controling Microsoft Word .doc files with catdoc. http://git-scm.com/book/en/Customizing-Git-Git-Attributes However, I realized that this doesn’t work for .docx files. It seems that you need either docx2txt or unoconv instead of catdoc (found here). I decided to go with docx2txt for no reason, but I was […]

Git Log not showing accents

I’m having some trouble when displaying the git logs for my repository. If I try from Terminal.app + zsh it will display something like this: commit 0edd34498e630…a70c7f Author: Gustavo Ramos <gustavo.ramos@veadvogados.com.br> Date: Thu Jun 27 21:22:43 2013 -0300 removendo “meta” e “metas”, j<C3><A1> que esses foram deprecados a favor do modelo “target” While the “correct” […]

Initialize gitolite repository in existing folder

I’m fairly new to Git and Gitolite, but yesterday I managed to get it up and running. The thing is, I have a folder with many projects (let’s call it /projects) and I’m trying to migrate them to Git. I symlinked Gitolites /repositories folder to this /projects folder, so now every new repo is created […]

How do I create a new branch based on an existing Git hub branch? (Please read – tried the beginners guide)

I have a master branch and would like to create a new branch based on it, and then switch to the new branch. I’m very very new to coda/github/terminal so I don’t even know if my syntax is correct. here’s what I typed in, letter for letter, with the exception of the branch names which […]

Smart auto-completition for staged git file names, used with difftool

I’d like to have a smart auto-completition of currently staged file names when using git diff. Example: modified: DIR1/LongCamelCaseFileName.h modified: DIR1/AnotherLongCamelCaseFileName.m modified: DIR1/AndThereAreALotOfThemInDir1.m modified: DIR2/file4.m and here, using bash tab-auto-complete functionality I’d like to use it with git diff where by smart I mean that after typing git diff I’d need to type only a […]

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?

Mac Terminal Commands – how to come back after forgetting to close quotation marks

Warning: Noob question ahead! I’m using Heroku, and have forgetting to close the quotation marks when committing: localhost: app myMac$ git commit -m “testing > As you can see the last ” is missing on the end of testing. Now I’ve got the > sign and I’m unsure how to get out of it? This […]

Setting up Git osxkeychain error

I’m setting up Git and I am following http://lifehacker.com/5983680/how-the-heck-do-i-use-github along with the regular tutorial Git provides. My problem is I don’t want to have to type in my password each time so I am following this tutorial and when I arrive at the step where you input the git config —global credential.helper osxkeychain command, I […]

Create a git repo using an alias from terminal

Hey there I want to create a git repository like this: curl -u ‘USER’ https://api.github.com/user/repos -d ‘{“name”:”REPO”}’ But I want to do it using a alias in terminal (Ubuntu), like alias newRepo = curl -u ‘USER’ https://api.github.com/user/repos -d ‘{“name”:”$1″}’; git remote add origin git@github.com:USER/$1.git; So after in the terminal I type: newRepo test And it […]

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