If you have any questions or suggestions, please feel free to ask in the comment section. With the PPA, you easily get the latest Git version. I hope this quick little tutorial helped you to install Git on Ubuntu. You may also change it manually to change the configuration. This configuration is stored in ~/.gitconfig file. Packages are built using stage2 and extremely similar to the one shipping in Debian & Ubuntu. This for both the stable, qualification and development branches (currently 15, 16 and 17). You can check the Git configuration with this command: git config -list Packages are available for amd64, i386 (except for recent Ubuntu), s390x and arm64 (aka aarch64). This is because you haven’t configured Git with your personal information which is mandatory.Īs the error already hints, you can set up global Git configuration like this: git config -global user.name "Your Name" Omit -global to set the identity only in this repository.įatal: unable to auto-detect email address (got ' (none)') If you try to commit your code, you may see a ‘Please tell me who you are’ error like this: :~/compress-pdf$ git commit -m "update readme" If you have installed Git for development purposes, you’ll soon start cloning repos, make your changes and commit your change. Just update Ubuntu to get the latest Git stable version.ĭid you know that Git version control system was created by none other than Linux creator Linus Torvalds? Configure Git The beauty of using PPA is that if there is a new stable version of Git released, you’ll get it with the system updates. sudo add-apt-repository ppa:git-core/ppaĮven if you had installed Git using apt previously, it will get updated to the latest stable version. Thankfully, there is a PPA available from Ubuntu Git Maintainers team that you can use to easily install the latest stable Git version. That cool, old school method is not everyone’s cup of tea. One way would be to install from source code. So how do you install the latest Git on Ubuntu then? Install latest Git on Ubuntu-based Linux distributions This is why when you check the Git version, you’ll see that it installs a version which is older than the current Git version available on Git project’s website: :~$ git -versionĪt the time of writing this tutorial, the version available on its website is 2.25. On an LTS system, the software stability is of upmost importance this is why Ubuntu 18.04 and other distributions often provide older but stable version of a software that is well tested with the distribution release. There is only a slight little problem (which might not be a problem at all) and that is the version of Git it installs. It is available in the main repository of Ubuntu and you can install it using the apt command like this: sudo apt install git
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |