diff --git a/U201915014/1.txt b/U201915014/1.txt deleted file mode 100644 index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..0000000000000000000000000000000000000000 diff --git a/U201915014/README.md b/U201915014/README.md new file mode 100755 index 0000000000000000000000000000000000000000..34f4a8c760afa40d74a821706fb231e67ffb19c9 --- /dev/null +++ b/U201915014/README.md @@ -0,0 +1,35 @@ +[TOC] + +# 大数据存储系统与管理作业2022-U201915014-CS1905-黄欣宇 + +## To do list + +- [x] Task 1 Use Git +- [ ] Task2 TBD +- [ ] Task3 TBD + +## Task Detail + +### Task1 Use git + +1. 开启Github账号,用上Git + - Git入门可参考 [https://github.com/cs-course/git-tutorial](https://gitee.com/link?target=https%3A%2F%2Fgithub.com%2Fcs-course%2Fgit-tutorial) + - git - 简明指南 [http://rogerdudler.github.io/git-guide/index.zh.html](https://gitee.com/link?target=http%3A%2F%2Frogerdudler.github.io%2Fgit-guide%2Findex.zh.html) + - 未来自学 + - 如何高效利用GitHub [http://www.yangzhiping.com/tech/github.html](https://gitee.com/link?target=http%3A%2F%2Fwww.yangzhiping.com%2Ftech%2Fgithub.html) + - Github简明教程 [http://www.runoob.com/w3cnote/git-guide.html](https://gitee.com/link?target=http%3A%2F%2Fwww.runoob.com%2Fw3cnote%2Fgit-guide.html) + - 图解Git [http://marklodato.github.io/visual-git-guide/index-zh-cn.html](https://gitee.com/link?target=http%3A%2F%2Fmarklodato.github.io%2Fvisual-git-guide%2Findex-zh-cn.html) +2. Fork此仓库至自己账号 + - Fork功能位于页面右上角 + - Fork操作将自动跳转进自己账号中"克隆"仓库 +3. 将仓库抓取至本地 + - 选择一个工作目录用于存放本地仓库,开终端窗口进入目录 + - 使用命令 `git clone git@github.com:(用户名)/iot-storage-experiment-assignment-2022.git` +4. 在本地仓库中,用 ![:point_right:](https://assets.gitee.com/assets/emoji/point_right-8d392cf32998e3bca12bb7b4ee10dae0.png) ***自己学号*** ![:exclamation:](https://assets.gitee.com/assets/emoji/exclamation-187efa2abd8f8327b81375cd42917817.png) 建立文件夹 + - 在这个文件夹里面编写报告,保存 + - 用`git commit`操作来提交,`git push`操作来推送进自己Fork之仓库 +5. 基本完稿即可发起Pull请求 + - Pull请求即为向原始仓库要求合并,即**交作业** + - 教师完成合并后作业将呈现于原始作业仓库中,完成提交 + - 后续如果有更新,还可以提交、推送后再次发起Pull请求 +6. 作业提交样式[参考](https://github.com/cs-course/iot-storage-experiment-assignment-2019/tree/master/U201614890) \ No newline at end of file diff --git "a/U201915014/U201915014_CS1905_\351\273\204\346\254\243\345\256\207_\345\244\247\346\225\260\346\215\256\345\255\230\345\202\250\345\256\236\351\252\214\346\212\245\345\221\212.docx" "b/U201915014/U201915014_CS1905_\351\273\204\346\254\243\345\256\207_\345\244\247\346\225\260\346\215\256\345\255\230\345\202\250\345\256\236\351\252\214\346\212\245\345\221\212.docx" new file mode 100644 index 0000000000000000000000000000000000000000..5e99f9780f93b6a056071812d0a1c506915ae0c6 Binary files /dev/null and "b/U201915014/U201915014_CS1905_\351\273\204\346\254\243\345\256\207_\345\244\247\346\225\260\346\215\256\345\255\230\345\202\250\345\256\236\351\252\214\346\212\245\345\221\212.docx" differ diff --git a/U201915014/gitPull.bat b/U201915014/gitPull.bat new file mode 100644 index 0000000000000000000000000000000000000000..b58f335dbb509d9eb0f8ac04068a44b16d2ae182 --- /dev/null +++ b/U201915014/gitPull.bat @@ -0,0 +1,5 @@ +echo "git pull orgin master...." + +git pull origin master + +pause \ No newline at end of file diff --git a/U201915014/gitPull.sh b/U201915014/gitPull.sh new file mode 100755 index 0000000000000000000000000000000000000000..f97508e63c8154b62445f2a777855b13ed9ab11d --- /dev/null +++ b/U201915014/gitPull.sh @@ -0,0 +1,3 @@ +#!/bin/bash +echo "git pull remote repo to local repo ..." +git pull origin master diff --git a/U201915014/gitPush.bat b/U201915014/gitPush.bat new file mode 100644 index 0000000000000000000000000000000000000000..b69d6dc21c3c772e0d7aaf44813d60823deb1a93 --- /dev/null +++ b/U201915014/gitPush.bat @@ -0,0 +1,23 @@ +#!/bin/bash +echo "Start submitting code to the local repository" +echo "The current directory is:%cd%" +git add * +echo; + + + +echo "Commit the changes to the local repository" +echo "please enter the commit info...." +set /p message= +set now=%date:~0,10% %time:~0,8% +git commit -m "%message% by FishInMars(Windows) %now%" +echo; + +echo "Commit the changes to the remote git server" +git push +echo; + +echo "Batch execution complete!" +echo; + +pause \ No newline at end of file diff --git a/U201915014/gitPush.sh b/U201915014/gitPush.sh new file mode 100755 index 0000000000000000000000000000000000000000..8d248f227e6380ed62a2eb3b9d6cac76aaed3528 --- /dev/null +++ b/U201915014/gitPush.sh @@ -0,0 +1,22 @@ +#!/bin/bash +echo "Start submitting code to the local repository" +git add * +echo; + + + +echo "Commit the changes to the local repository" +echo "please enter the commit info...." +read info +date=`date +%Y/%m/%d` +time=`date +%r` +info="$info by FishInMars(Ubuntu) $date $time" +git commit -m "$info" +echo; + +echo "Commit the changes to the remote git server" +git push origin master +echo; + +echo "Batch execution complete!" +echo;