Posts

Showing posts with the label GIT

SVN migrate to GIT

1. Change the folder structure of SVN Each project has three folders a. trunk: contain the current version b. tags: contain all the tags c. branches: contain all the branches 2. Use command to migrate git svn clone --stdlayout --no-metadata -A users.txt svn://192.168.204.8/<path>/<project name> <path>/<project name> Example: git svn clone --stdlayout --no-metadata -A users.txt svn://192.168.204.8/Acquisitions/Acquisitions-MyMerchant TTL/Acquisitions-MyMerchant 3. Use command to convert the branches and tags tags     $ cp -Rf .git/refs/remotes/tags/* .git/refs/tags/     $ rm -Rf .git/refs/remotes/tags branches     $ cp -Rf .git/refs/remotes/* .git/refs/heads/     $ rm -Rf .git/refs/remotes Pasted from: < http://rongjih.blog.163.com/blog/static/3357446120107111449543/ >

GIT Knowledge

Image
CREATE THE GIT SYSTEM 1. Install GIT software ( http://git-scm.com/) 2. Create one folder  Example: d:\learngit 3. start "Git Bash" (Windows in start menu) 4. Input command: git init 5. Register email and name with following command: git config --global user.email "<email address>" git config --global user.name "<user name>" ADD ONE FILE 1. start "Git Bash" (Windows in start menu)   2. create one file in GIT folder (d:\learngit) 3. input command to put file into temporary area: git add <file name> 4. input command to commit the change to git repository: git commit -m "<comments>" 5. input command to check the git status: git status  COMMIT ONE CHANGE 1. start "Git Bash" (Windows in start menu)       2. change the file which has been commit into GIT 3. input command to compare before commit: git diff <file name> 4. input command to put file into temporary...