I have lots of scrappy little bash and python scripts that live in ~/bin. I have been trying to keep tabs on them using git but I don't seem to have a good strategy for doing this yet.
Should one:-
1 - Have a separate 'development' directory where one mucks around with the scripts and keep that directory under git. Then, when tested copy the script to ~/bin.
2 - Simply put ~/bin under git.
The second approach is much easier in some ways and most of the scripts are pretty trivial (but easier to test when in their proper place).
... and/or are there any git commands/tools to help one do this?
Hi,
On 3 April 2013 18:45, Chris Green cl@isbd.net wrote:
I have lots of scrappy little bash and python scripts that live in ~/bin. I have been trying to keep tabs on them using git but I don't seem to have a good strategy for doing this yet.
While reading your email, the phrase "release management" screamed through my mind.
Should one:-
1 - Have a separate 'development' directory where one mucks around with the scripts and keep that directory under git. Then, when tested copy the script to ~/bin. 2 - Simply put ~/bin under git.
Either. It is up to you.
The second approach is much easier in some ways and most of the scripts are pretty trivial (but easier to test when in their proper place).
But if you ever symlink something else other than any script you write, or want to have different sets of scripts in ~/bin/ from different projects, then I'm not sure you could track them individually unless it was all in one repository.
Regards, Srdjan
PS: GMail's new compose form doesn't let you compose plain-text? Had to revert to classic mode...
On 03/04/13 18:45, Chris Green wrote:
... and/or are there any git commands/tools to help one do this?
Interesting (or perhaps not), I'd been asking myself the same question for a while. I found a few things online that looked like they might do what I wanted but ultimately not, so...
...I wrote one :)
https://github.com/stilvoid/git-aux
Maybe it will do what you want too.
Steve
On Wed, Apr 03, 2013 at 10:06:55PM +0100, Steve Engledow wrote:
On 03/04/13 18:45, Chris Green wrote:
... and/or are there any git commands/tools to help one do this?
Interesting (or perhaps not), I'd been asking myself the same question for a while. I found a few things online that looked like they might do what I wanted but ultimately not, so...
...I wrote one :)
https://github.com/stilvoid/git-aux
Maybe it will do what you want too.
That certainly addresses one issue, that of keeping a number of machines up to date. Thank you, I'll take a longer look in due course.