Skip to content

Satyamraj84/hacking-test

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

github使用指南

fork和pull request

First visit the ukui/hacking-test project, the address is as follows. After coming to the project homepage, you can see that there is already a hello-ukui.cc project in the project, and what we have to do now is to fork the project. Click the fork button in the upper right corner of the project, and the following dialog box will pop up 点击自己的用户名,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@example.com"

Your Name是你的用户名,email@example.com改为你的邮箱。

做完这一切后我们可以看到我们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创建完毕

About

优麒麟活动项目

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 75.5%
  • Java 18.7%
  • JavaScript 3.9%
  • Python 1.9%