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

- nadir
- Posts: 1160
- Joined: Wed Mar 09, 2011 4:18 am
- Location: here

## 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.
meandean

- meandean
- Posts: 392
- Joined: Wed Mar 09, 2011 5:16 am

## Re: tip: using git for scripts

Tue Mar 15, 2011 1:50 pm

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

- fsmithred
- Posts: 2101
- Joined: Wed Mar 09, 2011 9:13 pm

## 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
Jump to:

Powered by phpBB © phpBB Group.

phpBB Mobile / SEO by Artodia.