git posts

Git info alias

I do a lot of management of work and personal projects with git. I’ve been making shell and gitconfig aliases to make things that I do often quicker or to store logic of things that I won’t remember easily. One recent one that I really like is a git info (or g i) alias that shows status and a number of other bits of information about the repository quickly with one command. I’ve been using it in place of status most of the time.

Continue reading post "Git info alias"

I don’t know why I didn’t realize this before, but git project versions can be managed just with tags rather than needing to create a branch for each point version. Packagist can go entirely by tags. I had been creating point version branches because Symfony does, but that’s really only needed if you need to continue updating a previous version. It’s overkill for small, one person projects. With a tag available, it wouldn’t be hard to create a branch later anyway if needed.

I’m on GitHub

A couple months ago I finally made my first repos on GitHub. It provides a good place for me to store some of the code I use in an easily accessible location and also offers the potential for others to be able to make use of it and even contribute to it. I definitely like it so far. It has been quite easy to work with and offers a rather nice web interface. I can now not only access these repos from anywhere (with internet connectivity), but also read the source with its file browser and reader and view commit history with diffs.

I started off by adding some Symfony related repos, three that will form a basis for my personal Symfony projects (Symfony-Initial, Symfony-BaseBundle, and Symfony-Shared). I also added another Symfony one related to a project I’m working on (Symfony-BaseBundle). Then I added some more generic web related ones, a new CSS repo Web-Presentation and my JavaScript codebase TMLib (Web-ClientBehavior). I’ve been working on TMLib for a while now and have been wanting to add it.

I will work on these as need warrants and time allows. I will probably continue to add more of my collections of code that I’m fine with making public.