Hi all,
I'm trying to script a 'git pull' at $dir. It should be the equivilent of 'svn update $dir'.
Does any one know any easy way to do this?
Hi all,
I'm trying to script a 'git pull' at $dir. It should be the equivilent of 'svn update $dir'.
Does any one know any easy way to do this?
#!/bin/bash
dir=$1
pushd $dir
git pull
popd
Note that if $dir is a subdirectory, this will update the whole tree, not just that subdirectory.