This documentation contains a set of guidelines to help you during the contribution process. I'm happy to welcome all the contributions from anyone willing to add new scripts to this repository. Thank you for helping out and remember, no contribution is too small.
-
Fork the repository to your own GitHub account.
-
Clone the repository to your local machine
$ git clone "https://www.github.com/{Username}/HelloWorld_Firstname.git"
where username is your GitHub account username.
- Create a branch where you can do your local work. Never work on master branch as we do not allow master commits except by admins.
$ git branch {branchname}
$ git checkout branchname
- Do your work and stage your changes.
$ git add <filename>
- Commit you changes with a commit message containing your name, file(s) worked upon, changes added.
$ git commit -m "Name| files| Changes"
- Push changes to your forked repository
$ git push -u origin branchname
- Create a pull request to the upstream repository.
- Create upstream as our repository
$ git remote add upstream "https://www.github.com/prathimacode-hub/HelloWorld"
- Fetch upstream changes in local machine
$ git fetch upstream
- Switch to master branch
$ git checkout master
- Merge changes in local machine
$ git merge upstream/master
- Push changes to your forked GitHub repository
$ git push -f origin master
- Do not edit/delete someone else's code in this repository. You can only insert new files/folder in this repository.
- Give a meaningful name to file you are adding, for e.g., if you have written a Hello World code on Python, then HelloWorld_FirstName.py is one example of valid name.
- Your program should follow this template.
- When you are contributing, make sure that the work is entirely your own and not from some other source.
- Markdown : Markdown is a lightweight markup language like HTML, with plain text formatting syntax.
- Git : Git is a distributed version-control system for tracking changes in source code during software development. It is designed for coordinating work among programmers, but it can be used to track changes in any set of files.
You can refer to the following articles on basics of Git and Github and also contact me, in case you are stuck:
- Forking a Repo
- Cloning a Repo
- How to create a Pull Request
- Getting started with Git and GitHub
- Learn GitHub from Scratch
It always takes time to understand and learn. So, do not worry at all. I know you have got this!💪