A piggy bank of commands, fixes, succinct reviews, some mini articles and technical opinions from a (mostly) Perl developer.

Jump to

Quick reference

Showing posts with label versioning. Show all posts
Showing posts with label versioning. Show all posts

Git setup

git config --global user.name "Your Name Comes Here"
git config --global user.email you@yourdomain.example.com

git config --global color.diff auto
git config --global color.status auto
git config --global color.branch auto

git config --global core.editor vim

How to install subversion on your linux shared hosting account

  1. Find out which linux distro your web host is running
  2. Download a set of subversion binaries for that linux distro
    1. or install that linux distro on a VM and compile into a PREFIX directory
  3. Copy bin/svn and require libs onto your web host (see list below for svn 1.6.16)
  4. Voila!


List of libs required for svn client:
svntest/lib/libsvn_ra-1.so.0
svntest/lib/libssl.so.0.9.8
svntest/lib/libsvn_diff-1.so.0
svntest/lib/libneon.so.27
svntest/lib/libsvn_ra_neon-1.so.0
svntest/lib/libsvn_subr-1.so.0
svntest/lib/libsvn_ra_local-1.so.0
svntest/lib/libsvn_wc-1.so.0
svntest/lib/libsvn_ra_svn-1.so.0
svntest/lib/liblber-2.4.so.2
svntest/lib/libsvn_fs_util-1.so.0
svntest/lib/libsvn_delta-1.so.0
svntest/lib/libldap-2.4.so.2
svntest/lib/libcrypto.so.0.9.8
svntest/lib/libsvn_fs_fs-1.so.0
svntest/lib/libsvn_fs-1.so.0
svntest/lib/libapr-1.so.0
svntest/lib/libserf-0.so.0
svntest/lib/libaprutil-1.so.0
svntest/lib/libgdbm.so.3
svntest/lib/libsvn_ra_serf-1.so.0
svntest/lib/libsvn_client-1.so.0
svntest/lib/libsvn_repos-1.so.0

Subversion basics

# checkout / create a new project
svn checkout https://example.googlecode.com/svn/trunk/ example --username [username]

# submit a directory for the first time
svn import newdir/ https://example.googlecode.com/svn/trunk/

# see all modified files in project
svn status -v

# submit modified files
svn commit

# diff
svn diff --diff-cmd diff -x -wB [filename]
svn diff --diff-cmd diff -x --side-by-side [filename]

# move or copy, keeping history
svn mv [old file] [new file]
svn copy [old file] [new file]

# update your workspace to head
svn up /your-workspace

# update your workspace to a particular date
svn up -r {2010-11-14} /your-workspace

# ignore a file or directory
svn propset svn:ignore [file or dir] [parent dir]