Top/VersionCtl/git/subversion とのコマンド対比

目次

Subversion とのコマンド対比

GitSubversionDescription
git initsvnadmin createリポジトリ作成
git clonesvn checkoutリポジトリのコピー
git add <file>svn add <file>ファイルの追加
git add <file>; git commitsvn commit [file]ファイルの更新をリポジトリに反映
git rm <file>svn rm <file>ファイルの削除(別途、要 commit)
git statussvn status
git log [file]svn log [file]ログを表示する
git log --shortstat --name-statussvn log -v追加・変更されたファイル名を含めたログを表示する
git log -<number>svn log -l <number>最新から <number> 個のログエントリを表示する
git blame <file>svn blame <file><file> の各行がいつ誰によって変更されたかを表示する
git checkout <branch>svn switch <branch>
git merge <branch>svn merge <branch>
git checkout <file>svn revert <file>ファイルに対して行った(リポジトリに未反映の)変更を元に戻す
git clean -fsvn revert [dir]
git pull <remote> <local>svn up[date]<remote> の最新状態を <local> に merge する

トップ   編集 凍結 差分 履歴 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2024-04-14 (日) 09:24:03