How do I change the directory in Git Bash with Git for Windows?

How would I change to the directory C:/Users/myname/project name in Git Bash?

Git GUI crashes every time it opens a repository

Since few days ago, every time I start Git GUI in a repository, it displays this horrifying error message and quits after I click OK: prepare-commit-msg hook failed: 0 [main] us 0 init_cheap: VirtualAlloc pointer is null, Win32 error 487 AllocationBase 0x0, BaseAddress 0x68560000, RegionSize 0x260000, State 0x10000 C:\Program Files (x86)\Git\bin\sh.exe: *** Couldn’t reserve space […]

Merge two separate SVN repositories into a single Git repository

We have two Subversion repositories, each with a single project. So: svn://server/svn/project_a svn://server/svn/project_b They are separate projects, and are in separate repositories with completely separate commit histories. Project A has r1, r2, … r100 and Project B has r1, r2, … r400 We would ultimately like to merge these two SVN repositories into a single […]

How to check the validity of a remote git repository URL?

Within a bash script, what would be the simplest way to verify that a git URL points to a valid git repo and that the script has access to read from it? Protocols that should be supported are git@, https://, and git://. Curl fails on the git:// protocol. git:// Note: I’m not asking […]

How to create patch between two tags with multiple commits between them?

I have two tags in my git in same branch. There are at least 5-6 commits between them. How can I create a single patch between the two tags so that it can be applied to a GitHub repo?

Git workflow: forking a project and maintaing a local modified copy, but keep up to date

I’m trying to figure out the best workflow for maintaining a local copy of a github-hosted project (moodle) with customizations, while maintaining the ability to keep our copy up-to-date. Tell me if what I’m thinking about doing is completely insane: Fork the project ( –> Create an upstream remote (git remote add upstream git:// […]

git describe fails with “fatal: No names found, cannot describe anything.”

I’m using git 1.7.1 on Ubuntu 10.10 amd64, and I’m trying to extract the hash of my repository HEAD to use it in an automated version information that I compile into my project. In the past, this always worked by using git describe –tags however, git is now throwing fatal: No names found, cannot describe […]

Is it possible to view multiple git branches at the same time for the same project?

I have 2 branches, which are not ready to be merged yet, but have some complementary logic, which I’d like to review (before merging) Can I check out multiple git branches of the same project? Is it possible?

How can you git add a new file without staging it?

To use git effectively (and as intended) I make small atomic commits, while I do have longer sessions where I do change not only one thing. Thus, I make heavy use of git add -p. This doesn’t work for completely new files, though, because I tend to forget them later on. What I want to […]

To git checkout without overwriting data

How can you git-checkout without overwriting the data? I run git checkout master I get error: Entry ‘forms/answer.php’ would be overwritten by merge. Cannot merge. This is surprising, since I did not know that Git merges when I git-checkout. I have always run after the command separately git merge new-feature. This seems to be apparently […]

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