github

portable git configuration

I have installed the portable git version on my flash drive, but I don't want my repository to be in the same directory as the program. I can get to the directory using: $ git -- git-dir=../Gits --work-tree=..Gits But I don't want to enter that every time. So I found in this article on the gitconfig file. But it only shows how to set ...

GitHub and Source Code Protection and Control

Hey Guys! I am working in a small startup organization with approximately 12 - 15 developers. We recently had an issue with one of our servers where by the entire server was "Re provisioned" i.e. completely wiped of all the code, databases, and information on it. Our hosting company informed us that only someone with access to the ser...

Github. How do I make changes to what is ignored via .gitignore?

I have an Xcode project that uses git for version control. I have a .gitignore file to ignore the build subdirectory: build/* I recently added a subdirectory that contains an Xcode project and forgot to update the .gitignore file before checking it in. Is there any way to make git ignore the build subdirctory now, after the fact? ...

How to hide connection string, user name, pw when using source control?

I'm working on a small side-project and I'm using connection strings and also api keys and values that should not be seen or used by other people. I use a public GitHub account for source control. What is the usual method for using source control when these values are in plain text in web.config? Do I need to remove the values manually ...

Cloning a Git repo without the .git directory

Is it possible to clone a repository without git creating a .git folder inside the local copy of the repository? Sort of like a read only functionality? ...

Starting a Ruby project: github + build tool

I am starting out to play around with Ruby and trying to make a desktop app using Ruby and wxRuby. So, to start out with a new ruby only project, I have few questions: I need a standard directory structure, what is the best possible way to do it? I tried out newgem with details here, but it seems that that the newgem website is not up...

Hudson git plugin won't clone repo on Linux

Alright, so I'm having some issues with my repo on github being cloned on my Hudson server which is running Fedora 8. The output is the usual error output when an error is encountered with git: Started by user anonymous Checkout:workspace / /home/tomcat/.hudson/jobs/CIExample/workspace - hudson.remoting.LocalChannel@3861e6 Using strateg...

What is GitHub, and how can I take advantage of the GitHub project?

I am not a professional programmer. I Googled for some information about RoR, found a project that may suitable for me, and then found a GitHub link. What is GitHub about? Is it just a place for sharing source code? ...

Github and Non-Ignoring files in the .gitignore

I had a file I needed to edit in my .gitignore file. I edited .gitignore, committed it, and still my file was unavailable to commit. I deleted the file, readded it, and once it has the same name, its still unavailable to commit. I tried -f, which then added an empty version of the file to my repository. And the worst apart about that ...

How do I open source my Rails' apps without giving away the app's secret keys and credentials.

I have a number of Rails apps hosted on GitHub. They are all currently private, and I often will deploy them from their GitHub repository. I'd like to be able to make some of them open source, just like the ones you can find on http://opensourcerails.com. My question is: How can I make these repositories public without giving away super...

Git bridge to Mercurial

I work mostly with Git and have a lot of code on github. I would also like to have it on Bitbucket, for people using mercurial but more importantly as I want to also have the code on my domian, and BItbucket supports Cnames for hosted code. So is there a way for me to mostly work with Git, but also be able to push to HG. Github created...

How can I upload my application to github but remove sensitive authorization information?

I want to upload my app to github so I can share portions of it for feedback and help...but it contains information used for logging into other services and so forth. How do I upload it into github without making it difficult to continue to use that repository for deploying into heroku? ...

How to fix GITHUB commit date?

Hi all, I am working on a github hosted project. For testing reasons, I have to move my computer date to somewhere in the future (2012) and forgot to bring it back to normal time when doing a git commit / push. The actual commit is now actually saved as 2012 instead of 2010 and it's screwing our github view since they always appear on...

Installing a gem from a repo I cloned on git hub

Post says it all. I've cloned a gem (particularly radiant) after clone it from its github source. Anybody tell me how I can install it as a gem? Something like "gem install radiant --local"? Thanks, Joe ...

Multiple GitHub Accounts & SSH Config

I'm having some trouble getting two different SSH keys/GitHub accounts to play well together. I have the following setup: Repos accessible from one account using [email protected]:accountname Repos accessible from another account using [email protected]:anotheraccount Each account has its own SSH key. Both SSH keys have been added and I ha...

Git - how to always take a my branch's content when hitting a conflict?

Hi there, I saw the post "How do I tell git to always select my local version for conflicted merges on a specific file?", which says if you have conflict on a folder, we need to add .gitattributes to that folder and then add a merge driver to config file to say always keep my branch's content for this folder. And this works perfectly fi...

Maven - Error Releasing Code to GitHub (Hangs After Push)

I'm attempting to run the mvn release:prepare goal and it's hanging after the push. Any idea what I could be doing wrong? [INFO] [INFO] ------------------------------------------------------------------------ [INFO] [INFO] BUILD SUCCESSFUL [INFO] [INFO] ------------------------------------------------------------------------ [INFO] [IN...

Git multiple sub projects

Hi all, I have multiple projects that I'd like to put up onto GitHub.com. All of these projects are in my local Git repository. I have just one repository, but for each project, I'd like to have 1 GitHub project. That way, bugs can be organized by the project. How can I set this up so that it isn't that difficult to manage? Do I ne...

Which is faster, ssh or git protocol?

Which is effecient? SSH:// or Git:// (File compression) I understand in Git , git protocol is smart because there is a protocol agent on both end of commumnication to compress the file transfer resulting in faster clone by effeciently using the network bandwidth. From an O'Reilly book I found the following statements. For secure, aut...

git pull: permission denied

hi, I created a repository in my desktop and push to github, then clone that repository to my laptop to make development, later committed the changes and push to github. now back to my desktop, i tried 'git pull' to get all the changed i made, it showed the error message: Permission denied (publickey) fatal: The remote end hung up unex...