Git interactions of late

Have had reason to do some new things with Git of late.

git archive: exporting and then zipping up or tarring up my git repo, minus any of my .git folders. Otherwise known as: not accidentally shipping my personal credentials out with my repository. (Note: yes, I’m aware that there are other means of storing credentials, such that they don’t end up in your .git/config areas… I just hadn’t configured them at that point for that project…)

git checkout-index, as discussed on StackOverflow: alternate approach to exporting, ala svn export.

Either of these hep better than this:
$ find . -type f -not -path ‘./notThisDirectory’ -exec cp ‘{}’ ‘/c/Development/toThisDirectory/{}’ \;

The problem with the above is that, although it nicely didn’t merge in the ‘notThisDirectory’, it did copy in my .git/config, thus making my separate local repository copy get remarkably confused about where it should push/pull from…

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>