Under the Linux SVN operation, vim batch modify operation __linux

Source: Internet
Author: User
Tags diff svn svn update

SVN operation:

1, pull the file to the local directory

SVN Checkout Directory Example: SVN checkout Svn://192.168.0.0/test

2, add a new file

SVN Add File Example: SVN add test.cpp

3, submit the modified document

SVN commit-m "Submit Text" file Example: SVN commit-m "commit file A.txt" A.txt

4, view the log

SVN log file Example: SVN log test.cpp

5, view the detailed structure of the document, including the path, the last modification of the last modification time, etc.

SVN info File Example: SVN info gamecomm

6, compare the differences between files

SVN diff file Example: SVN diff test.cpp

7, update the file to a version

SVN update-r m path: svn update-r test.cpp updates test.cpp to version 200, using SVN update directly if you want to update all files in the current directory.

8. Revert to a file

svn revert file Example: Recert a.txt

9. Conflict resolution

SVN resolved file Example: Resolved A.txt

10, SVN help

SVN help

That's the basic command.

Recently found a useful thing in vim:

Find a string in Vim: Command line mode enter/***, find * * *

Replaces a string in vim with the current line: command-line Mode input: S/str1/str2/g replaces all str1 in the current row with str2

Replaces one string of all rows in vim: command-line Mode input:%s/str/str2/g replaces each row of str1 with str2



Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.