Skip to content

Latest commit

 

History

History
118 lines (79 loc) · 2.96 KB

Contributor.md

File metadata and controls

118 lines (79 loc) · 2.96 KB

Contributing Guidelines


We appreciate your contribution, please participate in this project.

Follow the steps below :-

Git Setup Guide


To initialise Git, write

git init

1. Configure your local Git


git config --global user.name "github username"
git config --global user.email "email address"

2. Go to the Lets-learn-Swift-Together repository and Fork it.


  • The term fork refers to a rough copy of a repository. When you fork a repository, you are able to test and debug changes without affecting the original project. In addition to proposing changes to resolve bugs, forking is also used excessively for this purpose.

Fork The Repo

  • Click on Code Button and copy the URL of your forked Repository

Fork The Repo

3. Switch to your Git bash window, and enter the following :


  • Clone the Forked project on your local system
  • The copied url should look like this 👇
https://github.com/Your-User-Name/Lets-learn-Swift-Together.git
  • Use the following command in Git bash window
git clone https://github.com/Your-User-Name/Lets-learn-Swift-Together.git

Note: Do not fill this detail twice or more than that.

4. Creating a Pull request


Create a branch

  • A branch is designed to encapsulate a group of changes. These changes might be thrown away, entirely rewritten or in the majority of cases they’ll be promoted into the main history of the codebase - via a merge.

  • For creating a branch

git branch branch_name
  • Checkout to the created branch
git checkout branch_name
  • Now add the Swift Playgound file using the git command
git add .
  • The Swift code should be formatted like this 👇
//
// Hello.playground <-- (Your playground file name)
// Created by Sandeep Sahani on 23 Dec 2022 <-- (Your name and date on which file was created)
//

import UIKit

print("Hello, I am Sandeep") <-- (Your code)
  • Commit the changes to the local project
git commit -m "Added MyPlayground.playground"
  • Push the changes to your forked github repo
git push origin branch_name

5. Final Steps


  • Open your forked git repository, you will get a message like as shown in the figure (if not then refresh the page).

Contri

Click on "Contribute 👆🏻

  • Now click on "Open pull request"

  • Click on "Create pull request"

  • You may add a Comment to your Pull Request

Congratulations you contributed to this repository! 🥳

Thanks for contributing your valuable time in this repository 🙏