立诚勿怠,格物致知
It's all about connecting the dots

标签:git

OSChina支持Pages功能了

This is not a new function supported by OSChina, but I'm just aware of that yesterday. Long time ago, I had once made a choice whether to use github or OSChina to be the repository storing my public code, and I finally use github later due to the fact that I found OSChina seems to have to function like github Pages. You know, as I front end developer, it's import to show not both your code but also its visual display to others. Therefore, functions like github pages are very meaningful to me and it's also very convenient. Without functions like github pages, I will need to build my code and then use FTP/SFTP tools like FileZilla to upload my frontend static files to my server. If you change your code in high frequency, you will find this way quite time-wasting. Whereas if you use github pages, all you need to do after rebuild your code is type one line's command in your command line tools and press enter button ^_^.

未分类 阅读(4331)去评论赞(1)

git version rollback

tengyunfengdeMacBook-Pro:test-git yakima$ git log commit 25c92d1f05c56827b306689f426278e1cba8e837 Author: Yakima Date: Mon Jul 31 10:24:00 2017 +0800 third commit commit 13d46518f355aa88e85979d616203748c38dde33 Author: Yakima Date: Mon Jul 31 10:23:35 2017 +0800 second commit commit 0b01db0d3923ec3cfa8b643286ff9333c20cc5de Author: Yakima Date: Mon Jul 31 10:21:59 2017 +0800 first commit

常用git命令

# 添加单个文件 git add # 添加某路径下已追踪文件中所有被修改或删除的信息以及所有未追踪的文件到索引库 # 若省略path,则path为当前目录 git add -A # 添加Documentation目录下(包括子目录、孙子目录...)的所有*.txt文件 git add Documentation/\*.txt # 添加所有git-*.sh脚本(仅添加当前目录下的脚本,不包括子目录、孙子目录...) git add git-*.sh

登录

找回密码

注册