myBlog


  • Home

  • Archives

git 基本命令

Posted on 2019-02-11

git init

  • 创建新的git仓库:创建新目录,进入目录,执行 git init。
  • 生成.git目录,该目录为本地仓库
    init .png

git add

  • git 仓库工作区,缓存区 ,仓库,在工作区进行文件的添加修改之后,再提交到仓库之前,需要先添加到缓存区。
    add.png

    git commit -v

  • git add 命令将文件提交到缓存区,提交到仓库需要使用 git commit 命令,记录对存储库的更改,使用 git commit -v 进入 vim 在顶部输入message后退出可将文件提交到本地仓库。
    commit.png

Untitled

Posted on 2019-02-11

title: 初识命令行
date: 2019-02-11 11:16:24

tags:

进入目录 cd
显示当前目录 pwd
创建目录 mkdir
创建多级目录 mkdir -p


查看目标路径 ls 路径
查看当前路径 ls
查看所有文件 ls -a
查看更多信息 ls -l ls -la


创建文件 echo ‘内容’ > 文件路径
强制创建文件 echo ‘内容’ >! 文件路径
追加内容 echo ‘内容’ >> 文件路径
创建文件 touch file
更新文件改变时间 touch file


查看文件内容 cat file.txt
合并文件 cat file1.txt file2.txt > file3.txt


重命名文件 mv file1 file2
移动文件到目录 mv file directory


使用expainshell.com
在网站搜索框中直接输入想查找的shell命令即可查找该命令含义。
比如 cat 命令
cat: concatenate files and print on the standard output.

英语单词

linear 线性
gradient 变化率
generator 形成 产生者

Untitled

Posted on 2019-02-11

title: 第二篇
date: 2019-02-11 10:44:15

tags:

第二篇博客demo。
-

Untitled

Posted on 2019-02-11

title: 开博大吉
date: 2019-02-11 08:26:13

tags:

哈哈

我的博客开通啦

Hello World

Posted on 2019-02-11

Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.

Quick Start

Create a new post

1
$ hexo new "My New Post"

More info: Writing

Run server

1
$ hexo server

More info: Server

Generate static files

1
$ hexo generate

More info: Generating

Deploy to remote sites

1
$ hexo deploy

More info: Deployment

123

yang

25 posts
1 tags
© 2019 yang
Powered by Hexo
|
Theme — NexT.Muse v5.1.4