GithubHelp home page GithubHelp logo

hacking-test's Introduction

github使用指南

fork和pull request

首先访问ukui/hacking-test项目,地址如下 。来到项目主页后可以看到项目中已经有一个hello-ukui.cc项目,现在我们要做的是fork该项目。点击项目右上角的fork按钮,会弹出如下对话框 点击自己的用户名,github就会将项目克隆到自己的账户下。 等待一会项目fork完成,此时点击右侧绿色的clone按钮,出现相应的地址 复制地址并到终端执行git clone命令

$ git clone https://github.com/readlnh/hacking-test.git

我们可以注意到hacking-test前已经是我们的用户名了。稍等一会,待项目克隆到本地。 我们进入hacking-test目录,并创建一个新的c++代码文件,文件名为hello+用户名的形式。这里以用户readlnh为例,命令如下:

cd hacking-test
vim hello-readlnh.cc

按i进入vim编辑模式,进行编码,编码完成后先按下esc,然后按下:,输入wq保存并退出 在终端编译代码,并执行,命令如下

$g++ hello-readlnh.cc 
$./a.out

如果无误,会输出相应结果。我们先删除生成的a.out文件,然后将我们的代码添加到git里,并提交到github。命令如下:

$git add hello-readlnh.cc
$git commit -m "I'm readlnh"
$git push

git commit -m命令后跟的是提交信息,你可以输入任何你想要的提交信息。 git push命令后会需要你输入账号密码,注意,如果之前没有在配置git账户,可能会出错,不过要解决也很简单,配置自己的用户名和邮箱即可,命令如下:

$ git config --global user.name "Your Name"
$ git config --global user.email "[email protected]"

Your Name是你的用户名,[email protected]改为你的邮箱。

做完这一切后我们可以看到我们fork的项目地址那里已经多了一个c++代码文件了

我们点击pull request按钮进入如下页面

点击Create pull request按钮,在跳转的页面中可以输出一些信息来表示你pull request,比如请求合并 再次点击Create pull request按钮,pr发送完毕,等管理员通过pr你的提交就会被合并到ukui下的hacking-test项目中了!

提交issue

点击issue标签,进入如下页面

点击New issue按钮,按如下格式提交bug

点击Submit new issue按钮提交issue,issue创建完毕

hacking-test's People

Contributors

droiiyhi avatar ferixue avatar galaxyll avatar ghorges avatar handsome-feng avatar hhttllll avatar homme769 avatar kuwangboy avatar lalahaha323 avatar lgjh123 avatar lhddream avatar liutingjieni avatar materyy avatar okokme avatar randylambert avatar readlnh avatar shengshengxiaowang avatar tangshye avatar tianshiyue avatar wkyhp avatar xzwb avatar ybfqlt avatar yue-lan avatar yyyupeng avatar

Watchers

 avatar

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.