git Bash 安装&配置与基本操作

来源:互联网 发布:新韩顺平php全套视频 编辑:程序博客网 时间:2024/05/29 18:42

安装完成后,打开GIT BASH:


1. 配置 :尽量保持与Git@OSC的注册信息一致

git config --global user.email "your Email"

git config --global user.name "your name"

2. 将git.oschina.net上名为test的项目clone到本地d:/mygit文件夹下:

$ git clone https://git.oschina.net/yourName/yourProject

上述http地址应从git.oschina.net上的项目一致。

3. 更新test项目并上传至master:

$ cd /yourTestDirectory 

$ git add * 

$ git commit -am "Info

$ git push origin master

4. 更新本地test

$ cd /yourTestDirectory

$ git pull

 

0 0
原创粉丝点击