• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

basu0001/first-pr-Hacktoberfest--2019: This will help beginner to get PR ......H ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

basu0001/first-pr-Hacktoberfest--2019

开源软件地址(OpenSource Url):

https://github.com/basu0001/first-pr-Hacktoberfest--2019

开源编程语言(OpenSource Language):

Java 33.0%

开源软件介绍(OpenSource Introduction):

first-pr-Hacktoberfest -2019

First Contributions

It’s not an easy task for a learner to implement things in the right way at one shot and difficult for learners to go in a correct path by following certain rules initially. Learners make mistakes and one learns from his/her mistake. So, we want to help the new-come learners to contribute to open source by making their first contribution. There is nothing more efficient way of learning new stuff than implementing it. As the saying goes “practise makes a man perfect”, the more we contribute to open source, the more we shall get used to its advantages. We shall, therefore, learn to contribute to the open-source GitHub by following the given steps below.

Fork this repository

Now, forking seems easy! Just click on right top fork button and get a copy of the repository in your account easily done.

Clone the repository

Next, to clone the forked repository just go your GitHub account, open the forked repository, them the copy to clipboard icon is pressed under the clone or download button in the forked repository. Open a terminal and run the following git command:

git clone "URL you copied"

where "URL you just copied" (without the quote marks) is the URL to this repository (your fork of this project).

Create a branch

Change to the repository directory on your computer (if you are not already there):

cd first-pr-Hacktoberfest--2019

Now create a branch using the git checkout command:

git checkout -b <add-your-new-branch-name> write the branch name without brackets.

Make necessary changes and commit those changes

Go to freshers folder. In the contributor_list.md add your name and git account. Then move into json folder open the gitcommands.json file and write any git commad you understood and describe it in one line. After necessary changes are made save them and in terminal type git status. Now you need to add them. git add freshers cause the folder you edited is named as freshers. If you go to the project directory and execute the command git status, you'll see there are changes.

git commit -m "Briefly explain what you did"

Push changes to GitHub

Push your changes using the command git push:

git push origin <add-your-branch-name>

Replacing <add-your-branch-name> with the name of the branch you created earlier.

Submit your changes for review

If you go to your repository on GitHub, you'll see a Compare & pull request button. Click on that button. Now submit the pull request.

Where to go from here?

Congrats! You just completed the standard fork -> clone -> edit -> PR workflow that you'll encounter often as a contributor! Now its time to practice some more PR workflow using different repositories.

And you like it then press the star button




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap