forked from Yonsm/Yonsm.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
git
espuppet edited this page Aug 11, 2013
·
2 revisions
Github有两种git push方式:SSH方式和HTTPS方式。
两者配置的url格式分别为:
SSH: [email protected]:username/projectname.git
HTTPS: https://[email protected]/username/projectname.git
当建立了本机密钥之后,使用ssh方式是不需要认证的,而https则每次需要输入密码
修改项目目录下的.git/config文件即可更改。
使用svnsync时需要允许所有用户修改revprop,Windows下需要建立的文件是pre-revprop-change.bat,不是pre-revprop-change。
目的地址的写法为file:///g:/some/file,否则会出现无法打开URL错误
如果想要git忽略某些文件,在工作根目录下添加.gitignore文件,添加忽略文件名即可