Recently I just bought a MacBook, and I had a hard time playing around. So I asked my friend if there was any installation package for SVN on Mac. As a result, my friend said that the Mac had its own SVN (really advanced, not only had it come with SVN, even PHP and Apache are built-in. It seems that Apple provides a lot of convenience for developers). However, the built-in SVN is not as graphic as it is on windows, and requires command line operations.
Recently I just bought a MacBook, and I had a hard time playing around. So I asked my friend if there was any installation package for SVN on Mac. As a result, my friend said that the Mac had its own SVN (really advanced, not only had it come with SVN, even PHP and Apache are built-in. It seems that Apple provides a lot of convenience for developers). However, the built-in SVN is not as graphic as it is on windows, and requires command line operations.
Recently I just bought a MacBook, and I had a hard time playing around. So I asked my friend if there was any installation package for SVN on Mac. As a result, my friend said that the Mac had its own SVN (really advanced, not only had it come with SVN, even PHP and Apache are built-in, and apple seems to provide a lot of convenience for developers). However, the built-in SVN is not as graphic as it is on windows, and requires command line operations, after learning on the fly, I checked the materials and recorded several common operations:
Svn checkout? Path? Short for flile? Svn co path? Flile? ? The directory is retrieved. Many documents are not as detailed as they are written. Only svn checkout is written, but several important parameters are not written. path indicates the server directory, and file indicates the local storage directory.
Svn add file to add files. file refers to your local directory.
Svn commit? -M "comment "? Path: svn ci file submission. path indicates that the server directory must be added before submission. Is there a method for batch operations on the Internet? :svn add `svn st |
grep
? |
awk
'{print $2}'
Svn upadate-r m path is updated to version m. If the parameters after r start are not written, update the latest version to the directory.
Basically, this is enough for me. If you have any unknown operations, we can enter svn help to list many operation commands.
Topics you may like
Original article address: the command line uses the SVN that comes with MAC. Thanks for sharing it with the original author.