Versioning
Dec 4, 2014
For certain configuration directories in my home dir, I sometimes want multiple files pushed to my dotfiles repo, but the majority of them not to be cared for (.env, .log, etc..) so I needed a way to use gitignore the opposite way: block everything and only allow some things:
# Ignore everything * # But not these files... !.gitignore !script.pl !template.latex # etc... # ...even if they are in subdirectories !
Continue reading ↦
Nov 19, 2014
This one is quite easy, but a little tricky. Had to do this for work as one of our groups was changing their email address and a few of the repo’s they used had files that depended on that email.
A couple requirements to keep in mind:
Had to be recursive
Had to excude certain file types
Had to do the replacement in an svn repository, which apparantly is difficult.
Continue reading ↦
Oct 9, 2014
git svn clone -s -r HEAD http://svn/java/<projectname> Not that you can do a range with a -r 2039:HEAD for revisions 2039 -> HEAD.
May 1, 2014
The server I usually use to store my repo is going to go offline soon. So I decided to just move it to bitbucket (love the free private repos:)
$ git remote origin So obviously we only have our remote origin.
git remote remove origin git remote add origin [email protected]:username/repo.git Then, lets push up our repo and all associated data with it (i.e. your commits)
git push -u origin --all # pushes up the repo and its refs for the first time git push -u origin --tags # pushes up any tags And thats it!
Continue reading ↦