Skip to content

Latest commit

 

History

History
131 lines (76 loc) · 4.33 KB

README.md

File metadata and controls

131 lines (76 loc) · 4.33 KB

Google Developer Student Clubs Cebu Technological University

Git & GitHub Workshop

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.


fork this repository

Step 1: Fork this repository

Make a copy of this repository in your account by clicking on the "fork" button at the top of this page.

Step 2: Clone the repository

clone this repository

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.

copy URL to clipboard

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.

Step 3: Create a branch

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>

Step 4: Make necessary changes and commit those changes

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.

git status

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.

Step 5: Push changes to GitHub

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

Step 6: Submit your changes for review

If you go to your repository on GitHub, you'll see a Compare & pull request button. Click on that button.

create a pull request

Now submit the pull request.

submit 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.

What a NICE!

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.