Tag: git svn

Rollback to uncommited changes after hard reset a Git Repository

Mistakenly, i hard reset my git repository. By doing this all the changes that i have made has been gone. Now, i want to rollback Git to all the uncommitted changes. Please help me with this.

Overcome git svn caveats

I am reading the CAVEATS of git–svn. via this SO question. What I understand is that: If you are mirroring svn trunk, branches etc on git repo, don’t merge or rebase anything locally on those branches. Specifically master points to the trunk. My point is that, this would make git-svn crippled. What’s the point of […]

What does the –stdlayout do in git svn clone?

I just spotted this question about recovering from a clone done without –stdlayout. I didn’t find documentation of this flag – what does it do?

git refname 'origin/master' is ambiguous

I have a git repository that is tracking several remote branches: $ git branch -a * master remotes/git-svn remotes/origin/master remotes/trunk When I try to setup a default one I get the following error: $ git branch –set-upstream-to=origin/master master warning: refname ‘origin/master’ is ambiguous. fatal: Ambiguous object name: ‘origin/master’. I would like to kremove some of […]

Error rebaseing/updating a git-svn repository

Hoping this is not a dup, I didn’t find any concise information on how to update a git–svn repo. I used git svn clone to import an SVN repo into git. Then, after doing some commits, I wanted to rebase with regards to the original SVN repo. C:\Work\osqa>git svn rebase Migrating from a git-svn v1 […]

Can different git-svn clones of the same svn repository expect to be able to share changes then git svn dcommit?

I’ve read a great deal of “go from svn to git” and other “git-svn workflow” articles on the web, and still I think they often deal with overly simple situations. They are often targeted at guys who just want to use git and hack locally, without using the full power of git, like pull, fetch, […]

Git svn clone: How to defer fetch of revision history

I often have the case that I want to work on a SVN repository right away. But an ordinary git svn clone [url] also clones the entire history. So I want to speed things up. The first part is to fetch only the last revision into your Git repository. I do it like so: URL=http://google-web-toolkit.googlecode.com/svn/trunk/ […]

failed to push some refs to git@heroku.com

I am getting this error when I am trying push my files into heroku rep. Ive set autocrlf = false already in gitconfig but this problem is still there. i have also tried this solution here but no gain. Any suggestion is this possible that git is still using old config setting if yes then […]

Git – What is a git commit ID?

How are git commit IDs generated to uniquely identify commits? Example: 521747298a3790fde1710f3aa2d03b55020575aa How does it work? Are they only unique for each project? or for git repositories globally?

How to import and keep updated a CVS repository in Git?

There is a central repository in CVS, and I would like to use it with Git locally, and then send my changes back to CVS. What can I accomplish that on a daily basis? The tasks I would like to accomplish are: importing branches, getting history in GIT-like format, and exporting back my changes/commits to […]

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