{"id":26013526,"url":"https://github.com/foss-cell-gecpkd/hello-opensource","last_synced_at":"2025-03-06T01:52:03.319Z","repository":{"id":38391970,"uuid":"293873546","full_name":"FOSS-Cell-GECPKD/Hello-opensource","owner":"FOSS-Cell-GECPKD","description":"This is your \"Hello world\" for open source contributions. Want to try practicing some PRs? This the right place!","archived":false,"fork":false,"pushed_at":"2022-12-21T11:36:06.000Z","size":33,"stargazers_count":7,"open_issues_count":1,"forks_count":19,"subscribers_count":2,"default_branch":"master","last_synced_at":"2023-06-15T18:28:47.284Z","etag":null,"topics":["git","open-source"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/FOSS-Cell-GECPKD.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-09-08T16:57:15.000Z","updated_at":"2023-06-15T18:28:47.284Z","dependencies_parsed_at":"2023-01-30T03:30:56.513Z","dependency_job_id":null,"html_url":"https://github.com/FOSS-Cell-GECPKD/Hello-opensource","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FOSS-Cell-GECPKD%2FHello-opensource","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FOSS-Cell-GECPKD%2FHello-opensource/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FOSS-Cell-GECPKD%2FHello-opensource/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FOSS-Cell-GECPKD%2FHello-opensource/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FOSS-Cell-GECPKD","download_url":"https://codeload.github.com/FOSS-Cell-GECPKD/Hello-opensource/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242133484,"owners_count":20077097,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["git","open-source"],"created_at":"2025-03-06T01:52:02.680Z","updated_at":"2025-03-06T01:52:03.297Z","avatar_url":"https://github.com/FOSS-Cell-GECPKD.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Hello Opensource \n\nThis is your \"Hello world\" for open source contributions. Want to try practising some PRs? This is the right place!\n\n## Step 1: Fork this repo\n\n\u003cimg align=\"center\" src=\"https://user-images.githubusercontent.com/59721339/92510135-ffa77680-f228-11ea-889f-d4a99eb873db.png\" alt=\"fork this repository\" /\u003e\n\nThis creates a copy of this repo to your GitHub account. Consider a scenario where you want to work with some code from your friend. So you copy the code in a flash drive from your friends PC. Forking is similar to this.\n\n## Step 2: Clone the repo\n\nNow, go to the fork of this repo **on your account**. To work with code, clone that repo to your local machine (as shown below). Similar to copying the code from the flash drive to your system. If you haven't installed the git, then this is the best time to do this - [here](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git) is a guide on installing git\n\nClick on \"Code\"\n\n\u003cimg align=\"center\" src=\"https://user-images.githubusercontent.com/59721339/92510454-7fcddc00-f229-11ea-9178-eb8cebfd34f7.png\" /\u003e\n\nCopy the link\n\n\u003cimg align=\"center\" src=\"https://user-images.githubusercontent.com/50027064/102229988-5ac8c380-3f12-11eb-97b7-6cd551129ff2.png\" /\u003e\n\nTo clone the repo, open the terminal and run the command\n\n```\ngit clone \"url-you-copied\"\n```\n\nNow you have the project repo on your local machine.\n\n## Step 3: Create a new branch\n\n Go to the repo directory on your machine\n \n ```\n cd Hello-opensource\n ```\n \n Create a new branch (It is a good practice to create a new branch if you wish to contribute)\n \n ```\n git checkout -b \u003cbranch-name\u003e\n ```\n \n for example:\n \n ```\n git checkout -b add-bruce-wayne\n ```\n \n Why create a new branch?\n You don't want to mess the code your friend has already written. By creating a new branch, you can safely work on top of the friend's progress. \n \n\u003cimg align=\"center\" src=\"https://user-images.githubusercontent.com/59721339/92589146-bf430980-f2b7-11ea-9dc2-3581c1ea610c.png\" /\u003e\n\n## Step 4: Create a new file\n\nGo to contributions folder\n```\ncd contributors\n```\n\nCreate a new file in that directory and fill in your info.\n\nFor example:\n```\nName: Bruce Wayne\nGithub: [batman](https://github.com/batman)\n```\nSave as `\u003cyour-name\u003e.md`\n\n## Step 5: Commit changes\n\n If you finalise the changes you can store the changes permanently by two steps\n \n - `add` the changes\n ```\n git add \u003cfilename\u003e\n ```\n - `commit` the changes\n \n ```\n git commit -m \"Add \u003cyour-name\u003e to contributors\"\n ```\n \n## Step 6: Push changes\n\nPush the changes to your repo by:\n\n```\ngit push origin \u003cyour-branch-name\u003e\n```\n\nFrom our example, we had already copied the files from the flash drive. We made some changes. Now we are copying back the changed file to flash drive so that we can give our changes to the friend.\n\n## Step 7: Create a pull request\n\nHere you're giving the flash drive to your friend. So he/she can look into the changes you have made. If everything is good, he/she can have the changes you made to his/her project.\n\nFirst, go to the GitHub repo in your account. Click `Compare \u0026 pull request`\n\n\u003cimg align=\"center\" src=\"https://user-images.githubusercontent.com/59721339/92591860-46927c00-f2bc-11ea-98d1-3d1f56d76ec1.png\"/\u003e \n\nAnd submit the pull request by clicking `Create pull request`\n\n\u003cimg align=\"center\" src=\"https://user-images.githubusercontent.com/59721339/92592170-cc162c00-f2bc-11ea-9e40-ac4afc618c6d.png\"/\u003e\n\n## Hurray!\n\n Congratulations, you have made it. Got any doubts? Feel free to let us know at our Discord!\n\n## Summary \n\n\u003cpre\u003e\n fork ----\u003e clone ----\u003e make changes -- +\n                                        | \ncreate a PR \u003c---- push \u003c---- commit \u003c-- +\n\u003c/pre\u003e\n\n## Addditional resources\n\nCheck out this [link](https://openhack.gitbook.io/openhack-20/resources#git-and-github) if you would like to explore more!\n\nThis project was a part of FOSS OpenHack '20: https://openhack.gitbook.io/openhack-20/.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffoss-cell-gecpkd%2Fhello-opensource","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffoss-cell-gecpkd%2Fhello-opensource","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffoss-cell-gecpkd%2Fhello-opensource/lists"}