Tag: github

How can I have linked dependencies in a git repo?

In my scripts, I often use libraries (mine or others’) that have their own repos. I don’t want to duplicate those in my repo and get stuck with updating them every time a new version comes out. However, when somebody clones the repo, it should still work locally and not have broken links. Any ideas […]

GitHub clone from pull request?

I would like to clone a repository from GitHub. The problem is I don’t want the main branch; I want the version in this unapproved pull request. Is it possible for me to clone the pull request version instead of the main repository?

Git push results in “Authentication Failed”

I have been using Github for a little while and I have been fine with git add, git commit, and git push so far with no problems. Suddenly I am having an error that says: fatal: Authentication Failed In the terminal I cloned a repository, worked on a file and then I used git add […]

Squash all my commits into one for GitHub pull request

I made a pull request on GitHub. Now the owner of the repository is saying to squash all the commits into one. When I type git rebase -i Notepad opens with the following content: noop # Rebase 0b13622..0b13622 onto 0b13622 # # Commands: # p, pick = use commit # r, reword = use commit, […]

Creating GitHub repository with only a subset of a local repository's history

The background: I’m moving closer to open sourcing a personal research code I’ve been working on for more than two years. It started life as an SVN repository, but I moved to Git about a year ago, and I’d like to share the code on GitHub. However, it accumulated a lot of cruft over the […]

Renaming a branch in github

I just renamed my local branch using git branch -m oldname newname but this only renames the local version of the branch. How can I rename the one in github?

git: have different .gitignore file for each remote

I have a remote repo in which I want to commit certain files (the compiled files to deploy them on a cloud computing platform), but I don’t want to deploy them on github… is there some way to have to different .gitignore files, one for each remote?

Connecting one Github repository to several Aptana projects

Is there a way to connect one Github repository to several different projects in Aptana? In other words, to have different directories in a single Github repository connected to different Aptana projects? I need this ability since I’m a freelancer who works on many projects, and I don’t wish to pay loads of $$$ to […]

How to keep public and private versions of a git repo in sync?

I’m releasing an open-source Rails app on Github (probably MIT license). I also want to maintain a private branch/fork of the project that we will use as part of a pay service. What is the best way to organize the repo(s) in this scenario? And, how can I keep the projects in sync when I […]

In XCode 4 how do I add a remote GitHub repository to an existing local project?

The Git integration in XCode 4 is very welcome however it seems to be a bit flaky when it comes to dealing with remote repositories. For clarity I’m using OS X version 10.6.7 and XCode 4.0.2 (4A2002a). If I create a new XCode 4 Project and accept the option to create a local Git repository, […]

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