Git 2.9 is now available, which ends the development of Git 2.9 development branch. Some of the new features include the implementation of git-multimail for sending notification emails for pushes to a Git repository, a brand new “interactive.diffFilter” configuration which gives developers the ability to customize the diff displayed in “git add -i” sessions.
The following core commands have received improvements as part of the Git 2.9 release:
- git p4
- git tag
- git merge
- git pull
- git apply -v
- git worktree add
- git mergetools
- git pull –rebase
- git send-email
- git rerere
- git clone
- git commit
I have been using Subversion for years. Often, I refer to Subversion commands when I have questions with Git. Subversion has an “export” command when you want a copy of the repository without the .svn directories and files. The question is, does Git have an “export” function similar to Subversion? The answer is yes. It’s called “archive master.”
To export in Git, go to the root of your Git project. For example:
$ cd ~/git/project
Create a gzip file or a zip file.
$ git archive master | gzip > project.tgz
$ git archive master | zip > project.zip
That’s it. You now a have a compressed copy of your project.
I’ve been using Subversion for years. Git has been picking up a lot of steam. So, it’s time for a version control refresh. I’ve been playing around with Git the last three weeks. I love it. If you’re interested in learning Git, or just want Git installed on your Ubuntu desktop, this is an article for you. For weeks, I have been looking for a really easy way to install Git, but I haven’t seen one to my liking, until tonight when I found this website.
I found this Git package that is ready for all the latest Ubuntu releases. It’s available for Ubuntu 10.04 LTS, which I am using at the moment, and all the way to the latest release, version 11.04. All you have to do is add the repository to your software source. To install Git, open up your Terminal and type in the following commands:
sudo add-apt-repository ppa:pdoes/ppa/ubuntu
If you’re new to Git, start learning by reading the Git Tutorial online. It’s excellent documentation by the way. So, there you have it. An easy way to install Git on your Ubuntu desktop.