Blog Tag git

Git and SVN

Published by Myles Braithwaite 2 years ago. 0 Comments

Tags , and

I am going to be on a plane tomorrow and the next day so I wanted to do some work on Django Photo Gallery but still wanted to commit changes to the repository while offline. So this is a quick overview on how I am going to do this.

First I need to checkout the repository:

git-svn init -s http://username@example.org/svn/project-name project-name --trunk=trunk --branches=branches --tags=tags

Lets cd into that directory and fetch the changes from the subversion repository:

git-svn fetch

If you have any branches or tags on the subversion repository you can see them with:

git-branch -a

If your subversion repository has a lot of commits then it would be a good idea to repack the repository which will make you git repository smaller and have a lot less files:

git-repack -d

Okay now lets make a new branch to make our changes; because I am going to be traveling I am going to call my branch air_plane_commits (a better name would be a ticket number or a feature):

git-checkout -b air_plane_commits

Now use Git as you would normally.

When you are back home you can commit you changes back to the subversion. Change to the master branch and merge your changes branch.

git-checkout master
git-merge air_plane_commits

You might need to fix some merge conflict, but probably not. Now we need to rebase our changes to the current subversion commit if there are other developers working on the same repository.

git-svn rebase

Now lets commit our changes to the subversion repository:

git-svn dcommit

Lighthouse and GitHub

Published by Myles Braithwaite 2 years ago. 0 Comments

Tags , , and

I was hoping today to switch Django Basic Tumblelog to Lighthouse issue tracker and GitHub but it seems that they are both down. I must be a problem with Engine Yard.

Update

They are back up now.

Crazy Two Day West Coast Trip

Published by Myles Braithwaite 2 years ago. 0 Comments

Tags , , , , , and

I am going to be in Calgary on Thursday and Vancouver on Friday and coming home on the same day. So there is going to be a lot of terminal waiting these next two days, but with the power of Git you should see some work being done on ether Django Basic Tumblelog or Django Photo Gallery, on Monday.

Also I just got my first bill from Amazon’s S3 Service a total of three cents, so you might see some features in Django Photo Gallery to integrate into S3.