Tips and Instructional topics. Not for support questions.
Post a reply

tip: using git for scripts

Tue Mar 15, 2011 8:14 am

you are like me and follow the scripts of fsmithred.
They change a lot, easy solution: use git.

apt-get install git-core
(on sid "apt-get install git". I think. Check that)
Code:
mkdir  ~/bin/
cd !$
git clone git://github.com/fsmithred/refracta

Result will be ~/bin/refracta

If you want to update your git-repo do:
Code:
git pull origin master

You will either get a message that all is up to date, or the output of what is getting updated.

Warning:
If you edit the scripts, you will run into problems.
a) learn git (takes a few years)
b) copy them to a testing place. edit them there, and keep this repo clean.

If you run into it, do this:
Code:
git stash

or, as it is a small repo anyway, remove it and clone it again.

This is not supposed to explain git. It is supposed to give a tip how to keep up to date with fsmithred's scripts without much headaches.

Re: tip: using git for scripts

Tue Mar 15, 2011 1:50 pm

good info....beats having to go and download them...

Re: tip: using git for scripts

Wed Mar 16, 2011 6:34 am

Save any older versions you liked before your next pull. I just deleted a bunch and added installerz-debian.03 and installerz-refracta.03. All options are functional.
Post a reply