git

Git: Create a branch from unstagged/uncommited changes on master

Context: I'm working on master adding a simple feature. After a few minutes I realize it was not so simple and it should have been better to work into a new branch. This always happens to me and I have no idea how to switch to another branch and take all these uncommited changes with me leaving the master branch clean. I supposed git st...

Git pre-receive hook

Hi When you enable pre-receive hook for git repository: It takes no arguments, but for each ref to be updated it receives on standard input a line of the format: < old-value > SP < new-value > SP < ref-name > LF where < old-value > is the old object name stored in the ref, < new-value > is the new object name to be stored ...

Is the Git remote name origin only applied to one created by git clone?

Does Git only use the remote name origin for a repository which was created by cloning? eg, say I create a repository, place it on a remote, and try to clone it again into the same directory, which one would Git name origin? ...

How do I prevent capistrano from overwriting files uploaded by users in their own folders?

I'm using Capistrano and git to deploy a RoR app. I have a folder under which each user has their own folder. When a user uploads or saves a file, it is saved in their own folder. When I deploy new versions of the code to the server, the user files and folders are overwritten with what's on my dev machine. Is there a way to ignore som...

Sharing code between two different git projects

I have two different .Net projects, hosted on github. I would like to create a shared "commons" library for the two projects. How should I structure my repository to facilitate this sharing? Ideally, a change in this common library in one project could easily be pushed into the other project. I prefer to keep the code itself editable ...

Git: getting the ref of a commit by day?

How can I get the sha ref of a commit on a certain day? ...

What's happened to my directory on GitHub?

I added a new subdir within my git respository: git add feeds Then commited this and pushed it up to GitHub but it seems as though I've commited a symlink / shortcut but not the actual directory and files within. See here: http://github.com/G4EGK/RSS-Reader Any idea what 'feeds' is? I'd like to remove that and correctly add my file...

Git How do I Push a project, that was Downloaded from Source

I worked with a graphic designer that did not clone from my github account. He downloaded the project from source rather than using the command "git clone". Since he pulled his files, a month has gone by and I want to do the following tasks: Create a new branch Push the graphic designers project into that branch Merge his branch with M...

Cloning a read-write github repository using TortoiseHg

I'm trying to clone my personal fork on github using the git+ssh protocol with TortoiseHg. It's giving me a rather strange error. Here is the command hg clone git+ssh://[email protected]:myusername/thefork.git This is after I have installed the hg-git module and it works just fine to clone using the git:// syntax. But I believe it's havi...

Do all git commands have a dry-run option?

Do all git commands have a --dry-run option, or one which would indicate what the command would do without actually doing them? ...

Is it possible to create a git a new, empty remote branch without pushing?

Most examples of creating remote branches involve pushing from a local branch Is there a way of creating an empty remote branch without pushing? Is it also possible to create a local empty branch,check it out then link it to the new also empty remote branch without pushing? ...

Error with git: remote HEAD is ambiguous, may be one of the following

After branching and pushing to the remote, a git remote show origin gives the report HEAD branch (remote HEAD is ambiguous, may be one of the following): master otherbranch What does the imply? It is a critical error? remote origin Fetch URL: [email protected]:/home/gituser/repos/csfsconf.git Push URL: gi...

Is there a database with git-like qualities?

I'm looking for a database where multiple users can contribute and commit new data; other users can then pull that data into their own database repository, all in a git-like manner. A transcriptional database, if you like; does such a thing exist? My current thinking is to dump the database to a single file as SQL, but that could well g...

Git as a backup and Version Control System.

Hi. I want to use Git to backup my home drive, but I also want to use it as a version control system for projects that will be stored in my home drive. How would I go about doing that? Do I .gitignore all the projects root folders and make new repositories for them? Edit: Ok I explained what I wanted wrongly. I want to have a histo...

Git: delete files in a branch, what happens when a merge takes place

I'm relatively new to source control (at least complex source control). If I'm developing a set of features in a branch, and I happen to delete some cruft out of the source tree in this branch, what happens when I merge? Are the files properly deleted in the trunk/master? Is there anything I should avoid doing that is typically problem...

How to install a plugin from github?

I have tryed to run this code in my console: script/plugin install git://github.com/apotonick/cells.git ...but i only get an empty folder named "cells" in my "vendor/plugins" dir. What's wrong? ...

GIT <> SVN interchangeable patch-files

Hi, I maintain a subproject which is running on the project's SVN server. I personally prefer to work with Git - the problem is that the entire community uses SVN, expects RFCs with a SVN compatible patch-file and people are familiar with SVN and send bugfixes agains that SVN repository too. Therefore my only problem is to create patch ...

Git repository issues

Hi, I am working on origin:abc remote repository . I want to update the origin:def repository in the remote repository in git. Can some please give me command for this? ...

How do I track a branch of another repository on the same machine?

I have two private repositories on one machine. Let's call them repo-A and repo-B, which are the directories ~/repo-A and ~/repo-B, respectively. repo-A has two relevant branches: master and live. I'd like to set up repo-B to track repo-A's live branch, so that git pull will pull any updates from repo-A's live branch into repo-B's mas...

Does m2eclipse need EGit for git support

Does m2eclipse use EGit for git support or does it just use the native git client installed on a machine? I have both installed (plus the m2eclipse SCM integration plugin) and I was wondering if I still need EGit if I use m2eclipse's git support. ...