any-scm
文件大小: unknow
源码售价: 5 个金币 积分规则     积分充值
资源说明:Use Git, Mercurial and Subversion with the same shortcut shell commands
# Any SCM

Use Git, Subversion and Mercurial via the same set of commands.

The basic concepts in pretty much any SCM software are the same: you add files, you commit, you diff, and so on.  Unfortunately, it is easy to forget which SCM you are using currently, `any-scm` solves this.

`any-scm` provides the following commands which will do the right thing, depending which SCM is active in the current folder:

  * `add` adds a file to version control
  * `ci` commits a new revision
  * `up` get the newest updates from the central repository.  
  * `st` list the status of the working copy
  * `revert` restores a file to the version from the last commit
  * `diff` shows a diff of all current changes


## Installation

 1. Run `./install.sh ~/bin` or substitute `~/bin` with a installation directory which you like better.
 
 2. Add `alias diff='~/bin/diff'` to your .zshrc to use the correct diff command.
 
 3. There is no step three.


## Why?

Some time ago, I adopted Git.  Coming from Subversion, I had some aliases for the most used commands in my .zshrc for working with svn.  But since I had to continue to work with those old Subversion repositories and still wanted to have the same convenience commands for the fancy new Git, I came up with this tiny script and created a bunch of symlinks to it instead of using shell aliases.

It detects from its arguments and CWD if you are working with a Git or Subversion repository and then chooses to execute the right command.

本源码包内暂不包含可直接显示的源代码文件,请下载源码包。