Skip to main content

Posts

Showing posts with the label git

Ubuntu: rSync without git subdirectory

Previously I blogged about a good backup/sync tool  rSync . While using it, I faced some problems. It replaced my .git repository and there by affected my git repo settings. I found a way to exclude sync'ing some files/folders. For this we have to use --exclude option. To exclude git sub-directory: rsync -a --exclude='.git/'  And to include some specific files, (Eg: 'c' files) rsync -a --include='*.c/' Source

Ubuntu : Upgrade Git

Sometimes simply updating from "Ubuntu update" won't update/upgrade some of the required packages. We need to to it manually by adding necessary repositories. To upgrade git: sudo add-apt-repository ppa:voronov84/andreyv sudo apt-get update sudo apt-get upgrade sudo apt-get install git If the first command result in error "couldn't connect to host"