Open In App

How to Add Code of Conduct to Your Project on GitHub?

Last Updated : 15 Sep, 2022
Improve
Improve
Like Article
Like
Save
Share
Report

The guidelines play important role in the community for contributing or adding something to it. The proper and well-written guidelines and instruction manuals help the community and developers to add more contributions to the community. The community moderators need to develop the content and guidelines that suit the community standards and help others to contribute to the community. The community guidelines define the community goals to the developers and contributors, while creating guidelines for the community be specific with each and every instruction you are writing because every contributor starts contributing by reading community guidelines. 

What is a Code of Conduct?

The code of conduct defines community standards and creates an engaging community that needs well-written guidelines. Before starting with the code of conduct research community goals, standards, and rules. The community code of conduct is an important search for other community guidelines for reference and while writing the code of conduct be specific with community values. The different tools are also available to design a code of conduct for the community you can also take references from them. The default code of conduct templates are also available but the community leaders force to develop original content for the community.

How to Add Code of Conduct to Your Project

Step 1: Navigate to the main page of the GitHub repository.

 

Step 2: On the left side click on Create new file.

 

Step 3: Type CODE_OF_CONDUCT.md into the new file field.

 

Step 4: Choose a template from the right side screen.

 

Step 5: The Code of conduct template will appear on the screen.

 

Step 6: Select the code of conduct file as per project requirements.

 

Step 7: Click on the Review and submit button.

 

Step 8: The code of conduct file is ready to add to your project.

 

Step 9: Write a meaningful commit before adding the code of conduct file to your project.

 

Step 10: Create a new branch or commit to the master branch of the project.

 

Step 11: Click on Create a pull request to add the code of conduct file to the project.

 

Step 12: Now the code o conduct file is successfully added to your project.

 

You can also add a code of conduct file manually but the above way is more flexible and convenient to add files to your project.

Conclusion

The code of conduct file is essential for every open source community and its defines community guidelines for your project to all contributors. The guidelines for the community should be specific and clear to all contributors and the code of conduct should be developed as per the community standards.


Similar Reads

How to Add Licensing to Your Open Source Project on GitHub?
OpenSource licensing is about the legal authorities of the project owner and contributors. An open source project means the project's code, documentation, and other resources are available publicly and people add value to it as contributions with code and non-code. The open source project must consist of licenses and there are different licenses av
3 min read
How to Upload a Project through GitHub Desktop on GitHub
Git is a free and open-source distributed version control system designed to handle everything from small to very large projects with speed and efficiency. Git relies on the basis of distributed development of software where more than one developer may have access to the source code of a specific application and can modify changes to it which may b
3 min read
How to add a README to your GitHub profile?
Github has recently added a really cool feature that allows you to add a README to your GitHub profile. It's just like an "About Me" or "Bio" section for your GitHub. It can be used to showcase your skills, your hobbies, or anything that you want the world to know about you. User can customize the Info on the README as per its choice. Adding a READ
2 min read
How to Add Code on GitHub Repository?
Github is an open-source version control software that allows users to access the resources available on this platform. Github repository allows users to store their projects. You can still add projects and files if you already have an existing repository, here we are discussing adding a file of a particular language. Suppose you have created a .cp
2 min read
Difference between "add -A", "add -u", "add ." , and "add *"
git add -A or git add --all : What it does is it's going to stage all the changes, all the modified, deleted, and new files, and the dot file in the entire working tree. [caption width="1920" align="aligncenter"] git add -A[/caption] So, you can say it does the entire working tree it means that if you are in my subdirectory and you can execute git
3 min read
How to Clone Android Project from GitHub in Android Studio?
Android Studio provides a platform where one can build apps for Android phones, tablets, Android Wear, Android TV, and Android Auto. Android Studio is the official IDE for Android application development, based on IntelliJ IDEA. One can develop Android Applications using Kotlin or Java as the Backend Language, and it provides XML for developing Fro
3 min read
How to Upload Project on GitHub from Android Studio?
Android is an operating system which is built basically for Mobile phones. It is based on the Linux Kernel and other open-source software and is developed by Google. The android app is developed on an application known as Android Studio. These executable apps are installed through a bundle or package called APK(Android Package Kit). Git is an open-
3 min read
How to Upload Project on GitHub from Pycharm?
PyCharm is one of the most popular Python-IDE developed by JetBrains used for performing scripting in Python language. PyCharm provides some very useful features like Code completion and inspection, Debugging process, support for various programming frameworks such as Flask and Django, Package Management, etc. PyCharm provides various tools for pro
3 min read
How to Upload Project on GitHub from Jupyter Notebook?
A Jupyter notebook is neither a simple text editor nor a full-featured IDE, rather it is an electronic file which contains both programming code and text descriptions. It can also contain embedded charts, plots, images, videos, and links. They run in a web browser like Firefox or Google Chrome. They can contain code of various programming languages
2 min read
How to Clone Web Project from GitHub in Pycharm using Git?
PyCharm is one of the most popular Python-IDE developed by JetBrains used for performing scripting in Python language. PyCharm is an integrated development environment used in computer programming. PyCharm provides some very useful features like Code completion and inspection, Debugging process, support for various programming frameworks such as Fl
2 min read
Article Tags :