We appreciate your contribution, please participate in this project.
Follow the steps below :-
git init
git config --global user.name "github username"
git config --global user.email "email address"
- 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.
- Click on Code Button and copy the URL of your forked Repository
- 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.
-
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
- Open your forked git repository, you will get a message like as shown in the figure (if not then refresh the page).
Click on "Contribute 👆🏻
-
Now click on "Open pull request"
-
Click on "Create pull request"
-
You may add a Comment to your Pull Request