发表于: 2016-04-18 20:51:13
1 2024
今天完成的事情:重点学习了git的使用,
git config --global user.name "Your Name"
git config --global user.email "email@example.com"
mkdir testgit
git init
git add readme.txt
git commit -m "readme.txt提交"
git status
git diff readme.txt
git log
git reset --hard HEAD^
git reset --hard HEAD^^
cat readme.txt
git reflog
git reset --hard commit_id
git checkout -- readme.txt
git checkout -- test.txt
git rm test.txt
git commit -m "remove test.txt"
使用网上提供的免费空间,使用flashfxp将代码上传到了网上的虚拟主机上,测试通过。
明天计划的事情:Task3
遇到的问题:使用git将代码上传到github后不清楚怎样删除代码
收获:学习了git使用,申请了虚拟主机,通过给的域名可以访问网站。
评论