用git工作学习吧

确实挺后悔没有早点在github上学习,没有用到git工具,亡羊补牢吧,先记录一下简单的步骤:

1、下载 Git for Windows,安装后到你的D盘创建一个Git文件夹;

2、创建 D:/Git/Hello 文件夹,然后进入 Hello,点击右键选择 gitbash;

3、在 github 上注册免费账号,新建容器 Hello,设置ssh值(用git gui很容易生成,粘贴过去)

4、  git config --global user.name 'jinfeng'

    git config --global user.email 'jinfengswust@163.com'

    git init

    git add readme.txt

    git commit -m 'this is my first file on github'

    git remote add origin https://github.com/jinfengswust/Hello.git

    git push -u origin master

5、OK!你可以在github上看到提交的文件;

6、拷贝他人的开源项目,到你的Git目录下打开git bash,git clone https://github.com/username/repname.git

7、多拷贝几个,很有感觉!

posted @ 2012-07-08 11:48  jinfengswust  阅读(179)  评论(0编辑  收藏  举报