联系我: macrotea.cn
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.gitconfig 内容如下: | |
[user] | |
name = macrotea | |
email = macrotea@qq.com | |
[alias] | |
ci = commit | |
co = checkout | |
st = status |
#git clone 不同协议结果不同#
D:>git --version
git version 1.8.5.2.msysgit.0
D:>git clone git://github.com/trix/nano.git
Cloning into 'nano'...
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[http] | |
proxy = 127.0.0.1:8087 | |
sslCAinfo = D:\\Setup Files\\Network\\wallproxy-v2.1.19\\local\\cert\\CA.crt | |
sslVerify = false | |
[https] | |
proxy = 127.0.0.1:8087 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
G:\Bat>ssh -vT git@github.com | |
OpenSSH_4.6p1, OpenSSL 0.9.8e 23 Feb 2007 | |
debug1: Connecting to github.com [192.30.252.130] port 22. | |
debug1: Connection established. | |
debug1: identity file /.ssh/identity type -1 | |
debug1: identity file /.ssh/id_rsa type -1 | |
debug1: identity file /.ssh/id_dsa type -1 | |
debug1: Remote protocol version 2.0, remote software version libssh-0.6.0 | |
debug1: no match: libssh-0.6.0 | |
debug1: Enabling compatibility mode for protocol 2.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
在Window下通过CMD命令行实践bower的过程,bower需要依赖nodejs和npm,请正确安装! | |
D:\>mkdir bower-demo && cd bower-demo | |
D:\bower-demo>node -v | |
v0.10.26 | |
D:\bower-demo>npm -v | |
1.4.3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
设置git使用http://协议代替git://协议,保证网络畅行 | |
D:\git config --global url."https://".insteadOf git:// | |
D:\git config --list | |
core.symlinks=false | |
core.autocrlf=true | |
color.diff=auto | |
color.status=auto | |
color.branch=auto |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"directory": "components" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
在github上创建一个库: https://github.com/macrotea/nodejs-bower | |
进入本地文件夹: ndoejs-bower,然后提交本地文件到远程库的命令如下: | |
D:\workspace\javascript\nodejs-bower>git init | |
D:\workspace\javascript\nodejs-bower>git add . | |
D:\workspace\javascript\nodejs-bower>git commit -m "init" | |
D:\workspace\javascript\nodejs-bower>git remote add origin https://github.com/macrotea/nodejs-bower | |
D:\workspace\javascript\nodejs-bower>git push -u origin master |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
我爱你中国 | |
sdfsdfsdfsd | |
sdfsdf | |
sdfsdfs |
OlderNewer