发表于: 2017-03-26 23:24:32
1 594
今天完成的事情:完成任务2.1—2.13
明天计划的事情:完成任务二其余部分,并提交。从svn配置开始。(已配置好,用户未设置)
遇到的问题:
1. 做一个任务列表的页面,<a>标签未封闭,导致后面所有的<div>都成了同一个链接。粗心大意惹的祸。
2. 文件提交到仓库的时候提示我账户为自动设置的,要求确认是否OK?嘛意思?
收获:在师兄的指导下成功push项目.重演一遍:
iMac:learngit Paul$ git clone git@github.com:Torlinone/learngit.git
Cloning into 'learngit'...
warning: You appear to have cloned an empty repository.
//克隆github项目到本地
iMac:learngit Paul$ cd
iMac:~ Paul$ pwd
/Users/apple
iMac:~ Paul$ cd /Volumes/docments/learngit/learngit/
iMac:learngit Paul$ pwd
/Volumes/docments/learngit/learngit
iMac:learngit Paul$ git init
Reinitialized existing Git repository in /Volumes/docments/learngit/learngit/.git/
//初始化git仓库目录
iMac:learngit Paul$ git add readme.rtf
//添加文件到版本库
iMac:learngit Paul$ git commit -m "first version"
[master (root-commit) 5e773fd] first version
Committer: Torlinone <Paul@iMac.local>
Your name and email address were configured automatically based
on your username and hostname. Please check that they are accurate.
You can suppress this message by setting them explicitly:
git config --global user.name "Your Name"
git config --global user.email you@example.com
After doing this, you may fix the identity used for this commit with:
git commit --amend --reset-author
1 file changed, 11 insertions(+)
create mode 100644 readme.rtf
//提交到仓库,细心的我一定发现这里有点问题,处理中。。。
iMac:learngit Paul$ git push origin master
Counting objects: 3, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (2/2), done.
Writing objects: 100% (3/3), 507 bytes | 0 bytes/s, done.
Total 3 (delta 0), reused 0 (delta 0)
To github.com:Torlinone/learngit.git
* [new branch] master -> master
//push到github
评论