你的位置:首页 > 软件开发 > 操作系统 > Git学习

Git学习

发布时间:2015-12-21 12:00:11
Git命令行配置1 安装Github2 安装msysgit3 要配置用户名和油箱 git config --global user.name <用户名> 我的命令就是:git config --global user.name mchdbagh git ...

Git学习

Git命令行配置去找.ssh里面的id_isa.pub打开,最好用notepad++打开,的里面的内容copy出来,然后放到https://网址里面,加入Git常用命令介绍

 

 

看到多另一个.git目录,表示项目创建成功了。

打开后,点击右下角的HTTPS clone URL栏目下方的复制按钮,就得到了库的clone地址 https://github.com/mchdbagh/manual56.git,如图所示

Git学习

也可以选择ssh方式:git@github.com:mchdbagh/manual56.git 

git clone git@github.com:mchdbagh/manual56.git;

 

(3) git add 操作实验

 

[plain] view plaincopyprint? 

 

 

手动用MarkdownPad打开C:\Documents and Settings\skyman\manual56\docs\Chapter_17\17.5.0.0.0.md,在里面输入中文字符串,保存退出。然后查看版本库状态,显示绿颜色的表示已经缓存起来了,显示红颜色的是修改过的但是没有缓存起来的。

 

[html] view plaincopyprint? 

 

 

OK成功了,然后打开网址https://github.com/xxxxxx/blob/master/docs/Chapter_17/17.5.0.0.0.md去看提交的新内容,见图片所示,新建立的文件17.5.0.0.0.md已经成功上传到remote文件服务器了。

 

Git学习

原标题:Git学习

关键词:Git

Git
*特别声明:以上内容来自于网络收集,著作权属原作者所有,如有侵权,请联系我们: admin#shaoqun.com (#换成@)。