Tag: svn

Git – switch between tags

I’m having trouble to switch between tags in git like in subversion. In subversion a tag is like a branch a new commit. So i simply have to call svn co https://example.com/tags/1.0.0 exampledir to get a tag. If i want to switch to version 1.0.1 i simple call in the exampledir svn switch https://example.com/tags/1.0.1 I […]

How to deal with a git that has git-svn and pure git remotes

I have two repositories, one is still an svn and acts as the main place, and another is pure git where is the daily work. I’ve my local clone using git svn clone svn+ssh://… and adding a remote using git remote add git@…. After a refactoring with its commits and branches, the git master has […]

Explanation of the differences between GIT and SVN

I come from an SVN background, and I have a hard time grasping Git’s philosophy. In particular, I’m confused by the following. Imagine I have made some changes in my working dir. If I switch to another branch, the changes remain, which is very unusual, from an SVN point of view. This means that uncommitted […]

Git SVN, how to compare with remote before push

i’m trying to use git with remote svn repo, I’m new in git and also not sure about the workflow when using git. let’s say I downloaded the trunk to my laptop, and made some changes on it, committed it locally, then after a few days, I want to push the change to remote svn. […]

Pull all branches from the remote on another PC

I created a repo on one computer, then created some branches there, and pushed the changes. Right now I have the following branches: master develop hotfix Then I began using another computer, so I cloned the repo, and wanted to checkout to different branch. But it gave me an error that it doesn’t exist. git […]

Ignore text encoding change in SCM (svn, git etc.)

Just like the title: is there a way to “ignore text encoding change in SCM (svn, git etc.)”? For example: someone use gb18030 encoding scheme to commit files, when I checkout the files, I need to convert the encoding to be UTF-8, which makes SCM tools think it changed by me , which i am […]

How to make git-svn act like the keyword expansion of SVN?

Git has limited keyword expansion capabilities. I know that I should write some scripts that actually do the expansion, because git itself won’t. Right now I’m not that worried about the expansion actually being done. My problem is that I have to work with an SVN repository and I would like to use it with […]

SubGit Synchronisation issue: error: svn: E175002: connection refused by server

I am currently working on configuring a SubGit-instance, which should synchonize with a remote svn-server. The problem is, that after about revision 150000 which were transformed into git commits, it aborts with following message: error: svn: E175002: connection refused by the server error: svn: E175002: REPORT request failed on ‘/svn/!svn/vcc/default’ error: Connection timed out: connect […]

Android build version automation in Git

I used to automate build version in Subversion using following Gradle script: import org.tmatesoft.svn.core.wc.* buildscript { dependencies { classpath ‘com.neenbedankt.gradle.plugins:android-apt:1.2+’ classpath ‘com.android.tools.build:gradle:1.0.0’ classpath group: ‘org.tmatesoft.svnkit’, name: ‘svnkit’, version: ‘1.7.11’ } } def getSvnRevision() { //getting SVN revision # ISVNOptions options = SVNWCUtil.createDefaultOptions(true); SVNClientManager clientManager = SVNClientManager.newInstance(options); SVNStatusClient statusClient = clientManager.getStatusClient(); SVNStatus status = statusClient.doStatus(projectDir, false); […]

Git SVN Reset : Numeric SVN revision expected error

We’re currently trying to convert a large SVN repository to Git. We ran into an issue where the HEAD revision in Git became corrupted somehow. We managed to fix that by running git reset –hard /remotes/git-svn. When we try to do a git fetch now it comes up with a checksum mismatch. Tried following the […]

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