So if you want to import a bazaar branch into git how do you do that?
Following this amazing tutorial which works in a very cool and smooth way
Check it out!
It was really handy 🙂
An Eye to the World, an Eye to the Net
So if you want to import a bazaar branch into git how do you do that?
Following this amazing tutorial which works in a very cool and smooth way
Check it out!
It was really handy 🙂
What will you say if I tell you you can close an issue on github with just your commit message?
It’s just well done.
Check it out:
http://github.com/blog/411-github-issue-tracker
Tracker is under a massive refactoring phase for the release of the 0.7.x series and there is a lot of work carried out. So to catch up and to give better info we started to work on the website to update the info over there.
Look at our new shiny development page where you can find the details and how to install tracker from the source with all the packages that you need in a debian based distro. BTW if you know what you have to install in Fedora and friends just let us know and we are going to add them in no time.
Anyway, I started this post to highlight another hint on how to use git (and where to find later when I will forget…)
The good news is Tshepang stated to contribute to the tracker website (source tracker website – if you feel like patches are always welcomed and yes you have to download all the gnomeweb-wml module).
Before today I always used git as a stand alone developer, but now I had to figure out how to track the changes in the master form the other projects, without losing all my work and the patches.
So here is the solution of this riddle.
From the master create your own branch
git checkout -b WIP
apply the patch and work on the branch
git am 0001-super_patch.patch
hack hack hack
git commit -am "A lot of good stuff"
Now you ready to go. You want to put back your changes in the master and then push on the server.
How to do that?
You must rebase your local Work In Progress branch with the local master that track the remote master. eh? yeah. Let’s go through the command:
git checkout master
#Back in master
git pull
# Grab all the new updates
git checkout WIP
# Back in WIP
git rebase master
#The Black magic. Commit all you change on top of the master ones
and now you good to go:
git checkout master
# Back in master
git merge WIP
# It’s gonna be a fast foward merge so no commit message will be created; that is exactly what you want, because the meaningful commits’ messages are in the WIP branch and a commit with the message “merged WIP” is not that interesting.
git push
# And we go online. 🙂
On a side note:
gitg is your friend.
On this page on the GNOME website I found how to use git properly if you are using it as a gateway to a svn:
git svn clone _svn_server_location
#Clone the repositorygit svn fetch
#Download the stuffgit svn rebase
#Merge the updates with the currentgit checkout -b myfeature
#Create a local branchgit commit -am "changed stuff"
# Commitgit commit -am "changed other stuff"
# Commitgit checkout master
# Change to master branchgit merge --squash myfeauture
#Merge myfeature to mastergit commit -am "merge the feature to the master"
git svn dcommit
# Commit everything on the svn serverMore info about git in the previous posts
Git rocks, and after two days of using I can confirm it.
I was a user of bazar, but with the switching of GNOME to git and the big trouble that bazar was giving me to commit on the svn of the EBI I decided to give to git a go.
Also on bioinfoblog the match between git and bazar it’s a though one, but I right now the svn support from git just works out of the box, so I started to use it.
I want also to point out that with the last git (ATMOW) is possible to create a remote branch on the svn server with:
git svn branch mybranch
and this was one of the killer feature that made me switch.
This is not a tutorial on git but I will provide you some quick and dirty pointers to other posts that I found interesting for a quick introduction to git.
Stuff to keep in mind about git:
Some pointers here:
I’ve customized my bash prompt to show my current branch on a git repository. This is the code (based on some code found on the net that I can’t track anymore.. I’m sorry….) looks like this:
#git branch
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* (.*)/(1)/'
}
#grey
PS1='[33[0;32m]u[33[1;32m]@[33[0;32m]h[33[00m]:[33[01;34m]W[33[1;30m]$(parse_git_branch)[33[00m]$ '
Siccome non ho ancora utilizzato git seriamente e sto cercando tuttavia di farmene un’idea vi dò un paio di lin interessanti:
Tre cose che ho capito:
Sarà git la soluzione a tutti i nostri problemi? No. saranno i neutrini. Rimango anche abbastanza preoccupato dell’aumento dell’entropia.