SVN,GIT usage

来源:互联网 发布:德力西选型软件 编辑:程序博客网 时间:2024/04/30 12:16
svn on mac
svn status 查看状态。没显示,就没问题
svn add 具体文件名
svn commit
$for file in $(find ./ -type f -name "*@*.jpg"); do svn add $file@; done
svn add filename with @ 解决方法。

$ svn add 'icon-service-item-04@2x.jpg@'
$ export SVN_EDITOR="vim"
$ svn help status  
$ svn help resolve



$ svn add `svn status|grep '\?'|awk '{print $2}'`

how to add file with filename .xxx@   add @ at the end of CMD
svn status
M       CustomizeMaterialViewController.xib
M       Catalogue.xcworkspace/xcuserdata/obizsoft.xcuserdatad/UserInterfaceState.xcuserstate
M       Catalogue.xcodeproj/project.pbxproj
M       Catalogue/ItemsViewDataSource.m
M       Catalogue/en.lproj/ViewController.xib
?       Catalogue/images/bg-service-monitor@2x.png
A       Catalogue/images/bg-service-monitor.png
A       Catalogue/images/diy-Check-in-04-backHome.png
A       Catalogue/webPdfViewController.h
A       Catalogue/webPdfViewController.m
M       Catalogue/TabBarViewController.h
M       Catalogue/TabBarViewController.m
M       Catalogue/ServiceGoomingSubViewController.m
A       Catalogue/webPdfViewController.xib
M       Catalogue/TabBarViewController.xib
M       Catalogue/ItemsViewDataSource.h
ObizSoftmatoMacBook-Pro-3:Catalogue obizsoft$ svn add   Catalogue/images/bg-service-monitor@2x.png
svn: warning: 'Catalogue/images/bg-service-monitor' not found
ObizSoftmatoMacBook-Pro-3:Catalogue obizsoft$ svn add   Catalogue/images/bg-service-monitor@2x.png@
http://stackoverflow.com/questions/1598968/add-all-unversioned-files-to-svn
GIT 下打开verbose $git verbose


svn: None of the environment variables SVN_EDITOR...问题解决  


svn: Could not use external editor to fetch log message; consider setting the $SVN_EDITOR environment variable or using the --message (-m) or --file (-F) options
svn: None of the environment variables SVN_EDITOR, VISUAL or EDITOR is set, and no 'editor-cmd' run-time configuration option was found
原因是: 没有设置svn编辑器的环境变量,主要是import、commit中填写comment要用
解决办法:

编辑 /etc/bashrc 文件,加入如下一行:

export SVN_EDITOR=vim
 

Mac OS X 10.7.2 Lion修改和添加环境变量

分类: Mac/Xcode 2538人阅读 评论(0) 收藏 举报

Mac OS X环境变量设置

首先查看是什么shell:

使用命令echo $SHELL
如果输出的是:csh或者是tcsh,就是C Shell。
如果输出的是:bash,sh,zsh,就是Bourne Shell的一个变种。
Mac OS X 10.2之前默认的是C Shell。
Mac OS X 10.3之后默认的是Bourne Shell。

(1) 如果是Bourne Shell。

直接在主目录下面的.profile或者.bash_profile中修改,如果文件不存在就生成一个。
usermatoMacBook-Pro:~ user$ pico .profile    //或用vi / vim都行。

比如这里要添加Android-SDK中的tools的路经到PATH(android后来将一些常用工具比如adb从tools移到platform-tools下面去了),就这样写即可:

export PATH=$PATH:/Android-SDK/android-sdk-macosx/tools 
 
(2) 如果是C Shell
和(1)一样 ,只是编辑的文件名为:.cshrc
pico .cshrc



OPTIONS
       -v, --
verbose command [options] [formula] ...
              With --verbose, many commands print extra debugging information.

 


原创粉丝点击