Git Product home page Git Product logo

ctfnotes's Introduction

CTFNotes

本仓库包含以每个人用户名命名的Branches,每个人在自己的Branch下提交自己的笔记。

配置教程——脚本(Windows)

  1. 安装Git和gh,参考手动教程
  2. 下载CTFNotes_Setup.bat,放入合适的父目录下
  3. 双击运行CTFNotes_Setup.bat,它会自动帮你fork仓库、克隆仓库到当前目录、自动填写.env文件并创建以用户名命名的文件夹
  4. 将你的笔记放入以用户名命名的文件夹中,不要放在最外层,然后运行push.bat提交修改
  5. 其他注意事项请查看手动教程

配置教程——手动克隆

1. 安装 Git 和 GitHub CLI (gh)

你可以通过官网下载安装Gitgh

也可以先安装scoop(Only for Windows),随后使用命令行安装git和gh:

scoop install git
scoop install gh

gh主要作用是提供GitHub认证

2. Github 认证

使用gh登录你的GitHub账号,以便为本机的Git提供Github账号认证:

gh auth login

全部默认按回车即可

3. Fork 仓库

在本仓库右上角点击Fork,确认勾选"Copy the main branch only",将本仓库的main分支Fork到你的账号下。

4. 克隆仓库

在你fork的仓库中,点击Code按钮,复制仓库地址,然后在本地使用以下命令克隆仓库:

git clone 你的仓库地址

5. 提交修改到你的仓库

注意: 请创建以你的用户名命名的文件夹,将你的笔记放入其中。

注意: git命令需要在CTFNotes文件夹中(包含.git文件)操作,建议将CTFNotes文件夹创建为VSCode工作区

在你更改了文件之后,你可以使用以下命令提交你的修改:

git add . # 添加所有修改
git commit -m "你的提交信息" # 提交修改
git push # 推送到远程仓库

如果你懒得每次打三行命令,我们也写了一个脚本push.bat,你可以每次做完更改后直接运行它

6. 提交 PR 到团队仓库(每个月一次)

你可以在你的仓库页面点击Pull Request按钮,提交PR到本仓库的以你的用户名命名的分支,不要交到主分支。

你也可以使用脚本pr.bat来提交PR,注意要在.env文件中填写你的用户名(不是昵称)。如果出错请前往网页解决。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.