Git: git svn

All local Git features are relevant

git svn assumes that you have only one remote
Tags are added as remote branches
Do local commits as usual Git commits

 

git svn clone <SVN’s URL> -s – assumes all default settings for naming for trunk, branches and tags,
git svn dcommit – makes “push” to SVN remote

if you need to push (dcommit) to SVN and Git simultaneously (actually it is not good idea) – start with SVN
In case git svn there will be no conflict in case changes relate to different files

git svn rebase – pulls data from server(directory should not be in conflicted state with a server)
git svn branch <SVN’s remote branch name> – create SVN’s remote branch, but not switch local context
git svn log – works offline, but shows only your committed commits
git svn blame <filename> – works offline, but shows only your committed commits
git svn info
git svn create-ignore / git svn show-ignore – manipulates with stuff that should be ignored

Advertisements

About DmitryKrinitsyn
Software developer and muay thai adept

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: