Welcome
Welcome to refracta

You are currently viewing our boards as a guest, which gives you limited access to view most discussions and access our other features. By joining our free community, you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content, and access many other special features. In addition, registered members also see less advertisements. Registration is fast, simple, and absolutely free, so please, join our community today!

tip: using git for scripts

Tips and Instructional topics. Not for support questions.

tip: using git for scripts

Postby nadir » 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: Select all
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: Select all
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: Select all
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.
So i herd u liek mudkip?
User avatar
nadir
 
Posts: 1159
Joined: Wed Mar 09, 2011 4:18 am
Location: here

Re: tip: using git for scripts

Postby meandean » Tue Mar 15, 2011 1:50 pm

good info....beats having to go and download them...
User avatar
meandean
 
Posts: 392
Joined: Wed Mar 09, 2011 5:16 am

Re: tip: using git for scripts

Postby fsmithred » 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.
User avatar
fsmithred
 
Posts: 1987
Joined: Wed Mar 09, 2011 9:13 pm


Return to How-to

Who is online

Users browsing this forum: No registered users and 0 guests

suspicion-preferred