├── cc.php ├── debug.txt ├── .gitignore ├── LICENSE ├── .gitattributes ├── test.txt ├── home.jpg ├── new'.txt ├── bate.txt ├── src ├── demo_com.js ├── test.md ├── demo.js └── test.user.js ├── .github ├── copilot-instructions.md ├── pull_request_template.md └── workflows │ └── study.yaml ├── README.md ├── .travis.yml └── package.json /cc.php: -------------------------------------------------------------------------------- 1 | 测试代码 -------------------------------------------------------------------------------- /debug.txt: -------------------------------------------------------------------------------- 1 | test file -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | coverage 2 | node_modules -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | test file 2 | LICENSE 3 | .... -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | *.txt linguist-language=cpp 2 | -------------------------------------------------------------------------------- /test.txt: -------------------------------------------------------------------------------- 1 | debug 2 | v0.5 3 | v0.7 4 | test 5 | test webhook 6 | -------------------------------------------------------------------------------- /home.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodFrm/StudyGit/master/home.jpg -------------------------------------------------------------------------------- /new'.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodFrm/StudyGit/master/new'.txt -------------------------------------------------------------------------------- /bate.txt: -------------------------------------------------------------------------------- 1 | test two 2 | v0.5 3 | 4 | test branch 5 | 6 | v0.71 7 | 提交测试 8 | ????? -------------------------------------------------------------------------------- /src/demo_com.js: -------------------------------------------------------------------------------- 1 | exports.print = function () { 2 | console.log("输出,emmm"); 3 | } -------------------------------------------------------------------------------- /.github/copilot-instructions.md: -------------------------------------------------------------------------------- 1 | ## Code Review 2 | 3 | - When performing a code review, respond in Chinese. 4 | -------------------------------------------------------------------------------- /src/test.md: -------------------------------------------------------------------------------- 1 | 2 |
3 |
4 | ok 5 | 6 |
7 | -------------------------------------------------------------------------------- /src/demo.js: -------------------------------------------------------------------------------- 1 | const func = require('./demo_com'); 2 | 3 | console.log("Hello World"); 4 | let sum = 0; 5 | for (let i = 0; i <= 100; i++) { 6 | sum += i; 7 | } 8 | console.log(sum); 9 | func.print(); -------------------------------------------------------------------------------- /.github/pull_request_template.md: -------------------------------------------------------------------------------- 1 | ## 概述 2 | 3 | 4 | 5 | 6 | ## 变更内容 7 | 8 | 9 | 10 | ### 截图 11 | 12 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | [![Coverage Status](https://coveralls.io/repos/github/CodFrm/StudyGit/badge.svg)](https://coveralls.io/github/CodFrm/StudyGit) 2 | [![Build Status](https://travis-ci.org/CodFrm/StudyGit.svg?branch=master)](https://travis-ci.org/CodFrm/StudyGit) 3 | 4 | # 学习Git 5 | ![img](home.jpg) -------------------------------------------------------------------------------- /src/test.user.js: -------------------------------------------------------------------------------- 1 | // ==UserScript== 2 | // @name Githubwebhook测试 3 | // @description test 4 | // @version 1.2.6 5 | // @author test 6 | // @run-at document-end 7 | // @grant unsafeWindow 8 | // @grant GM_xmlhttpRequest 9 | // ==/UserScript== 10 | 11 | console.log('webhook 测试缓存-2'); 12 | -------------------------------------------------------------------------------- /.github/workflows/study.yaml: -------------------------------------------------------------------------------- 1 | name: Use Actions 2 | 3 | on: [push] 4 | 5 | jobs: 6 | hello: 7 | name: Hello 8 | runs-on: ubuntu-latest 9 | needs: name 10 | steps: 11 | - name: Hello 12 | run: echo 'Hello' 13 | 14 | name: 15 | name: Echo name 16 | runs-on: ubuntu-latest 17 | steps: 18 | - name: name 19 | run: echo $HOME, -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: stable 3 | 4 | before_install: 5 | - npm install 6 | script: 7 | - npm run build 8 | - npm run cov 9 | 10 | before_deploy: 11 | - export BODY=$(git log --pretty=format:"%s" $TRAVIS_COMMIT_RANGE) 12 | 13 | deploy: 14 | - provider: releases 15 | api_key: $GITHUB_TOKEN 16 | name: "test" 17 | body: ${BODY} 18 | on: 19 | tags: true 20 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "studygit", 3 | "version": "1.0.0", 4 | "description": "学习Git\r ![img](home.jpg)", 5 | "main": "index.js", 6 | "scripts": { 7 | "test": "echo \"Error: no test specified\" && exit 1", 8 | "build": "echo \"Success\"", 9 | "cov": "./node_modules/.bin/istanbul cover ./src/demo.js --report lcovonly -- -R spec && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage" 10 | }, 11 | "repository": { 12 | "type": "git", 13 | "url": "git+https://github.com/CodFrm/StudyGit.git" 14 | }, 15 | "author": "", 16 | "license": "ISC", 17 | "bugs": { 18 | "url": "https://github.com/CodFrm/StudyGit/issues" 19 | }, 20 | "homepage": "https://github.com/CodFrm/StudyGit#readme", 21 | "devDependencies": { 22 | "coveralls": "^3.0.0", 23 | "istanbul": "^0.4.5" 24 | } 25 | } 26 | --------------------------------------------------------------------------------