github

How to upload fresh code at github?

I have a directory with all my coding projects. I want to upload (right word?) it to github using command line. I already looked at this question. I know how to clone an existing project, and how to push it after making any changes. But in this case, I want make a new project and add files to that. How to I do it (using command line)? ...

Git workflow idea to push an unfinished local branch to remote for backup purposes

Say I'm currently working on a new feature which I've branched off of the 'dev' branch and I've been working for several days and it's not yet ready to be merged with 'dev' and pushed. Although I have made several commits and have been pulling changes to dev and then merging dev into my feature branch to keep myself updated. Here's my ...

Github: readonly access to a private repo

I am developing some private projects on Github, and I would like to add nightly cronjobs to my deployments servers to pull the latest version from github. I am currently doing this by generating keypairs on every deployment server and adding the public key to the github project as 'Deployment key'. However, I recently found out that t...

How does git save space and is fast at the same time?

I just saw the first git tutorial at http://blip.tv/play/Aeu2CAI How does git store all the versions of all the files and still be more economical in space than subversion which saves only the latest version of the code? I know this can be done using compression but that would be at the cost of speed, but this also says that git is muc...

Should we be giving the client's management team direct access to our git hub repository so that they can see what we are up to in real time?

Hi, We are presently working for a client who is new to working with distributed teams. We have teams spread across India and the UK. Although we have decent project tracking tools (Mingle), would it be a good idea to the give the PM at the client access to our git hub repo. Would this be make it easier for them (see what the devs are ...

2 way synchronization of in-house gitosis repositories server with Github repositories

We use gitosis as our local in-house shared repository and also have a private Github account that mirrors our local repository. If one does a git push to the in-house repository the post-update hook updates the Github repository. How can I make this two way without causing "loops"? I.e. if someone pushes to the Github repository, I wou...

Git Submodule or fork

I have a private repo in github that is the complete source code to my cms. Now I have a few local customers that I want to use the same code base on but with different themes. Is it better to fork the original project out into a repo for each one. Or use a submodule and create a new repo for each customer? After each site is complet...

use hub, the github-gem or just stick to git when working with github repo's?

What are the pro/con's of using: - hub - github-gem - or just git when working with github? ...

github - Adding a file to branch

Hi there, So I'm following thiese instructions:http://mark-kirby.co.uk/tag/osx/ and so far i've cloned the project I want to work on and created a branch. Now I wish to add files that exist in another folder on my machine... but I keep getting the following: fatal: pathspec 'Users/mic/OnePageCRMVC/MKTsite25-05/index.html' did not matc...

How can I run Github submodules?

Hello, I am trying to make use of Wikislurp to dynamically read Wikipedia articles. The readme file states the following: After you have clone the repository, you'll need to run the following to pull in all the submodules: git submodule init git submodule update cd externals/curlcall git submodule init git submodule update But how ...

How to move a branch backwards in git?

The title is not very clear. What I actually need to do often is the following: Let's say I have a development going on with several commits c1,c2,... and 3 branches A,B,C c1--c2--c3--(B)--c4--(A,C) Branch A and C are at the same commit. Now I want branch A to go back where B is, so that it loks like this: c1--c2--c3--(A,B)--c4--(C...

Git Use Remote Source During Push

I have a local git repository a "central" repo at github. I'm working on a part of a project, while a friend is working on a related piece that is in an entirely separate repo, is it possible for me to simply link directly to my friend's repo? For example, the app is called widgets. I have all my code in widgets/app/mycode and my friend...

jekyll - add stuff to pages automatically, on github pages

Hi! Is there a way to obtain the url of a page on Jekyll? By pages I mean non-post textile files, like about.html and download.html on the following hierarchy: root | +- _includes | +- _layouts | +- _posts | +- _config.yml | +- index.textile | +- about.textile | `- download.textile I'd like to do something like this: <...

When creating a public GitHub repo, what's the best way to deal with 3rd party libs?

Should I include 3rd party libs in my public repo, or just add them as a requirement in a readme? ...

git push problem -argh!

Dunno what's going on, no response from github on this prob so I'm asking here. Tried a git push for the first time in a month or so and got this. Turned on export GIT_CURL_VERBOSE=1 and did a push and get this: localhost:send2mobile_rails phil$ git push Password: * Couldn't find host github.com in the .netrc file; using defaults * A...

Can GitHub show the history of changes made to one file?

I want to do: git log -p [path/to/file] in GitHub because I want it to look pretty, and I want a link to send to someone else w/o the code. Thanks! Matt ...

Migrate from Sourceforge to Github

I'm thinking about migrating a project from Sourceforge to Github. Besides the svn to git, what about migrating things like the issue tracker? Is there an easy way to do that? ...

Local branches show-up on GitHub's "Network" view

We are using Git and our workflow consists of a 'dev' and 'master' branch which lives on GitHub and each developer's local repository. No work is performed directly on 'master' or 'dev', but rather in local branches and only merges happen on 'dev' and later with 'master'. We do not push local branches to GitHub. For some reason develope...

Does github require each committer to have their own fork of the project?

I'd like to try git (hosted on github) for a new project, but I have a doubt on how it works. I am working with another guy, do we need to have two forks of the project and then merge them every time one of us makes a change to the code or is it possible to work in pair on a single origin? ...

How to begin working with git?

I'm a Ruby on Rails developer and want to use Git for my next project, but I'm not pretty sure how to begin learning this. I have too much basic questions like "Can I run my app from the repository?", or "Can I make a rollback in the live site?" Any help will be apreciated. ...