Tag: github

GitHub Error Message – Permission denied (publickey)

Anybody seen this error and know what to do? I’m using the terminal, I’m in the root, the GitHub repository exists and I don’t know what to do now. > git push -u origin master Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights and […]

git diff between cloned and original remote repository

I have cloned a github repository and made no changes locally. Github repository moved forward with commits on the same branch. How do I find a diff between my local repository and the original github repository? How do I find a diff between my working copy and the original github repository? How do I find […]

With GitHub how do I push all branches when adding an existing repo?

I created a new GitHub repo – I want to put my existing repo there. I followed the instructions: cd existing_git_repo git remote add origin git@github.com:acme-org/myprj.git git push origin master This only pushes the master branch to GitHub. How do I push everything (including all branches) in my existing repo to my new GitHub repo?

github: No supported authentication methods available

i use github and have successfully added and synched files on my laptop in the past. as of recent i started getting “PuTTY Fatal Error: Disconnected: No supported authentication methods available” after running: git pull origin master (or push) however ssh git@github.com returns the correct response: ERROR: Hi username! You’ve successfully authenticated, but GitHub does […]

Including js from raw.github.com

I have a github.com demo page that is linking to https://raw.github.com/…/master/…/file.js so that I don’t need to always copy the .js file over to the gh-pages branch every time it’s changed. This works in every browser except IE which complains: SEC7112: Script from https://raw.github.com/cwolves/jQuery-iMask/master/dist/jquery-imask-min.js was blocked due to mime type mismatch This complaint is coming […]

Trying to git pull with error: cannot open .git/FETCH_HEAD: Permission denied

Help me pls. I am run this in terminal asgard@asgard-A7N8X2-0:~/CollegePortal$ git pull error: cannot open .git/FETCH_HEAD: Permission denied Then I try this one asgard@asgard-A7N8X2-0:~/CollegePortal$ sudo git pull Permission denied (publickey). fatal: The remote end hung up unexpectedly Help me, I don’t understand this problem. Thank you.

Remove folder and its contents from git/GitHub's history

I was working on a repository on my GitHub account and this is a problem I stumbled upon. Node.js project with a folder with a few npm packages installed The packages were in node_modules folder Added that folder to git repository and pushed the code to github (wasn’t thinking about the npm part at that […]

Why is “origin/HEAD” shown when running “git branch -r”?

When you run git branch -r why the blazes does it list origin/HEAD? For example, there’s a remote repo on GitHub, say, with two branches: master and awesome-feature. If I do git clone to grab it and then go into my new directory and list the branches, I see this: $ git branch -r origin/HEAD […]

Search code inside a Github project

Is there a way to grep for something inside a Github project’s code? I could pull the source and grep it locally, but I was wondering if it’s possible through the web interface or a 3rd-party alternative. Ideas?

How can I check out a GitHub pull request?

I’d like to check out a previously created pull request (created via GitHub web interface). I searched and found different places where a refs/pull or refs/pull/pr But when I add fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to the git config file and do a git fetch What I’m doing wrong? Should GitHub create automatically the pull/xyz stuff, or […]

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