前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >添加gitignore文件

添加gitignore文件

作者头像
JavaEdge
发布2018-05-16 12:02:37
9490
发布2018-05-16 12:02:37
举报
文章被收录于专栏:JavaEdgeJavaEdge
代码语言:javascript
复制
Shusheng Shi@PC-of-sss MINGW64 ~/mmall/doc/mmall-fe (master)
$ rm test.html

Shusheng Shi@PC-of-sss MINGW64 ~/mmall/doc/mmall-fe (master)
$ ls
README.md

Shusheng Shi@PC-of-sss MINGW64 ~/mmall/doc/mmall-fe (master)
$ vim .gitignore

Shusheng Shi@PC-of-sss MINGW64 ~/mmall/doc/mmall-fe (master)
$ git status
On branch master
Your branch is up-to-date with 'origin/master'.
Changes not staged for commit:
  (use "git add/rm <file>..." to update what will be committed)
  (use "git checkout -- <file>..." to discard changes in working directo                                                                                                             ry)

        deleted:    test.html

Untracked files:
  (use "git add <file>..." to include in what will be committed)

        .gitignore

no changes added to commit (use "git add" and/or "git commit -a")

Shusheng Shi@PC-of-sss MINGW64 ~/mmall/doc/mmall-fe (master)
$ git st
git: 'st' is not a git command. See 'git --help'.

The most similar commands are
        status
        reset
        stage
        stash
        svn

Shusheng Shi@PC-of-sss MINGW64 ~/mmall/doc/mmall-fe (master)
$ git add .

Shusheng Shi@PC-of-sss MINGW64 ~/mmall/doc/mmall-fe (master)
$ git ca 'first initial'
git: 'ca' is not a git command. See 'git --help'.

The most similar commands are
        clean
        tag
        var

Shusheng Shi@PC-of-sss MINGW64 ~/mmall/doc/mmall-fe (master)
$ git commit -am 'first initial'
[master 0f90348] first initial
 2 files changed, 3 insertions(+)
 create mode 100644 .gitignore
 delete mode 100644 test.html

Shusheng Shi@PC-of-sss MINGW64 ~/mmall/doc/mmall-fe (master)
$ git push
Counting objects: 3, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (2/2), done.
Writing objects: 100% (3/3), 307 bytes | 0 bytes/s, done.
Total 3 (delta 0), reused 0 (delta 0)
To gitee.com:ssshappymmall/mmall-fe.git
   c3d58f4..0f90348  master -> master

Shusheng Shi@PC-of-sss MINGW64 ~/mmall/doc/mmall-fe (master)
$ touch .DS_Store
本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
原始发表:2018.01.29 ,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档