git

A Subversion user's guide to Git?

I am a new user in Git world. I used to use Subversion (using TortoiseSVN) and it is pretty easy. I would like to try Git but i got confused by the terms. Is there any documentation/guides that can explain me how to use Git? For example, in Subversion I use checkout; in Git which commands should I use? Any good book about Git that I cou...

git releases management

I couldn't find anything what is the "right" approach to manage the releases using git. Say, I have master, release-1, release-2 and release-3 branches. Release 1 is already released and I do only bugfixing and released versions tagging on it. Release 2 is going to be released soon and I develop mostly on this branch while on 3 I develop...

git submodules: customization

When using git submodules, what is the preferred way of doing customizations? Should I... fork the project and track the fork attempt to override the default behavior make the changes locally If none of these makes sense, then what does? ...

Record file copy operation with Git

When I move a file in git using git-mv the status shows that the file has been renamed and even if I alter some portions it still considers to be almost the same thing (which is good because it lets me follow the history of it). When I copy a file the original file has some history I'd like to associate with the new copy. I have tried...

How to get git-status of a single subfolder?

When I do git status in a subfolder of my repository it includes the status of parent folders also. Is there a way to constrain git-status to just a particular folder? ...

Handling multiple sites via git

Here's the situation: there are 9 sites, they all share a similar codebase, but there are differences: Type A: 2 of them could be considered "social" sites (events, news, profiles, login) Type B: 3 of them are your regular sites (events module, news, etc) Type C: 4 of them are small "brochure" type sites (just pages and a contact form)...

git "rewrite ... (90%)

When git does a commit it rewrites binary files with something similar to "rewrite foobar.bin (76%)" . What is that %? Is it percent changed or percent retained from the older file. I know that git uses a binary delta for files, but I just don't know how much of a rewrite the % represents and it doesn't seem to be in the help page for "g...

Unable to copy all but ~ -files and .gitconfig to Git -repo

I have my dev files at ~/bin/, while my Git repo files at ~/github/myProject/. I always run the following file to copy files from the former location to the latter one: #!/bin/zsh # editors# {{{ cp /Users/Masi/.emacs /Users/Masi/gitHub/MasiDvorak/ cp /Users/Masi/bin/editors/emacs/* /Users/Masi/gitHub/MasiDvorak/editors/emacs/ cp /Use...

Workflow description for git usage for in-house development

The company I work for wants to have monthly releases, and I am trying to convince them to switch to git. I believe the proper git-way to handle this is to have a integration branch for each release (i.e. monthly) and have feature branches off the integration branches for new development and changes. The environment is loaded with interd...

How do I re-fetch svn:log changes in git-svn?

SVN permits the ability to update an old commit message via hook. How can I go about updating my git-svn copy's version of the commit message? The only reference I could find was a bug report requesting this feature about a year ago on debian.org. Is this possible in the current version of Git v1.6.3.*? If not, what's the most intellig...

git setup for a single developer?

Hello, I often need to develop stuff on the road, with no internet/network connection. I am only a single developer, so until now I simply had a SVN repository on my machine and did a checkout on my laptop when I went away. Problem: That gives me no Source Control on the road. So I tried out changing to git, which seems to do what I wa...

Unable to work effectively with Git locally

Please, see Greg's answer. I do not understand Daniel's statement at the thread completely: Why are you manually copying files around at all? Surely you should just add them to the repo, then check out and commit as necessary. I don't see the need to move the files around - that seems to defeat the whole purpose of a loc...

Unable to find .gitconfig in old Git commits

I noticed a moment ago that my .gitconfig -file was public at my repo. It contains my secret tokens. I git-add -u the file and committed. I am not sure whether this command removes the file from the previous commits too. I want to be sure and search the file in my previous commits such that there is no such a file in my history. How c...

Unable to remove files recursively from Git

I want to remove all files from Git at ~/bin/. I run git rm -r --cached ~/.vim/* # Thanks to Pate in finding --cached! I get fatal: pathspec '.vim/colors' did not match any files This error messsage suggests me to use the following PATHs, since ~/.vim/** does not work ~/.vim/* # I get the error ~/.vim/...

git Will a commit be garbage collected if it's refered to by tag but not by branch?

I've got an annotated tag refering to a commit (does it matter if it is annotated?) and no branch refering there. Will the commit be garbage collected after some time? ...

Pretty git branch graphs

I've seen some books and articles have some really pretty looking graphs of git branches and commits. Is there any tool that can make high-quality printable images of git history? ...

Unable to keep my Git clean and public at Home

I have my dot files in Github publicly. This means that I have only a few files at my Home shared with others. The disadvantage of sharing, for instance, .bashrc with others is that I need to be careful not adding confidential data to Github. I run git status I get a long list of untracked files. I found out that apparently the o...

Where does Git save user's secret tokens by default?

I removed my .gitconfig by accident. I added new identies by git add [file] git remote ... [identity addition] I am surprised when Git did not make a .gitconfig file which contain my secret tokens to my Home. Git must have put the secret tokens elsewhere. However, I have not been able to find the location. The reason for that the da...

Unable to get aliases work in .gitconfig

Github has the following recommendation for ~/.gitconfig [alias] # Is this [-] only a comment in .gitconfig? gb = git branch gba = git branch -a gc = git commit -v gd = git diff | mate gl = git pull gp = git push gst = git status The above commands worked in my old Git. However, they do not work now for some unknown reas...

Unable to make Git ask about removal of deleted files

Assume you have a file which has been committed in your Git repo. You remove the file simply by rm file The removed file remains in your Git repo although you do not have it. My old Git complained me that you cannot commit before you git add/rm the file at a similar situation. I would like to have the same behavior back. How can yo...