The goal of this project is to make it easier for newbies to collaborate with others. Just follow the steps below:
If you don't have git on your machine, install it.
Make a copy of this repository in your account by clicking on the "fork" button at the top of this page.
Next, copy the forked repository to your computer. Open your GitHub account and navigate to the forked repository. Then, click on the "code" button and select the copy to clipboard icon.
Open a terminal and run the following git command:
git clone <url_you_just_copied>
where the "url you just copied" (without the quotation marks) refers to the web address of your forked repository, which you obtained in the previous steps.
For example:
git clone https://github.com/your-username/team-collab.git
where your-username
is your GitHub username. In this step, you are transferring the files and information from the team-collab repository on GitHub to your own computer.
Navigate to the repository directory on your computer (if you haven't done so already):
cd team-collab
Now create a branch using the git switch
command:
git switch -c <branch_name>
For example:
git switch -c <git-jam-sesh>
Using a text editor, open the file named Contributors.md
. Add your name to the file, making sure not to add it at the very beginning or end of the file. You can place it anywhere in between. Once you've added your name, save the file.
If you go to the project directory and execute the command git status
, you'll see there are changes.
Add those changes to the branch you just created using the git add
command:
git add Contributors.md
Now commit those changes using the git commit
command:
git commit -m <"commit_message">
replacing your-name
with your name.
Push your changes using the command git push
:
git push -u origin <branch_name>
replacing <branch_name>
with the name of the branch you created earlier.
For example:
git push -u origin git-jam-sesh
If you go to your repository on GitHub, you'll see a Compare & pull request
button. Click on that button.
Now submit the pull request.
We will soon merge all of the changes you made into the main branch of this project. Once the changes have been merged, you will receive a notification.
Congratulations! You have successfully completed the usual process of forking, cloning, editing, and submitting a pull request that is commonly used by contributors.
Join our club and let's grow together! Join GDSC CTU.