0% found this document useful (0 votes)
17 views

Introduction To GitHub and Version Control

Uploaded by

selamselam0970
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
17 views

Introduction To GitHub and Version Control

Uploaded by

selamselam0970
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 9

CodeLab Academy

Where your innovation journey begins!

Introduction to GitHub and


Version Control
Instructor: Kirubel Simachew (Senior Software Architect)
CodeLab Academy
Where your innovation journey begins!

Course Outline

1. What is Version Control?

2. What is Git?

3. What is GitHub?

4. Basic Git Commands


CodeLab Academy
Where your innovation journey begins!

What is Version Control?

● Track Changes: Every modification you or your team makes is saved, so you can always look back at older versions or undo

changes.

● Collaborate Seamlessly: Multiple developers can work on different features or fix bugs without conflict.

● Backup Your Work: Your code is safely stored online, so you can access it anytime, from anywhere.
CodeLab Academy
Where your innovation journey begins!

What is Git?

Git is a version control tool that helps manage your code and track changes across your project. It works on your local machine and

allows you to:

● Create branches to work on new features.

● Merge changes back into the main project.

● Commit your changes, like saving a snapshot of your work.


CodeLab Academy
Where your innovation journey begins!

What is GitHub?

GitHub is an online platform that stores your Git repositories and helps you collaborate with others. It provides:

● Repositories: A place to store your project's files.

● Pull Requests: A way to propose and discuss changes before merging them into the main project.

● Issues: A way to track bugs or new features.


CodeLab Academy
Where your innovation journey begins!

Setting Up GitHub

1. Create a GitHub Account:

● Visit GitHub.com and sign up for a free account.

● Set up your profile to make your work visible to others (optional but recommended).

2. Install Git on Your Local Machine:

● Download Git from git-scm.com and follow the installation instructions for your operating system.

● Verify the installation by opening your terminal (or Git Bash for Windows) and typing

git --version
CodeLab Academy
Where your innovation journey begins!

Cont..
3. Configure Git:

● After installation, configure Git with your name and email address:

git config --global user.name "Your Name"

git config --global user.email "[email protected]"

4. Initialize a Local Repository:

git init

5. Add a Remote Repository:

● To connect your local repository to the one you created on GitHub, set up a remote by running:

git remote add origin <repository-url>


CodeLab Academy
Where your innovation journey begins!

Basic Git Commands

● Clone a repository (copy a project to your computer):

git clone <repository-url>

● Check the status (see what changes have been made):

git status

● Add changes (stage files for commit):

git add <file-name>

● Commit changes (save changes with a message):


CodeLab Academy
Where your innovation journey begins!

Cont..

● Commit changes (save changes with a message):

git commit -m "your message here"

● Push changes (send your commits to GitHub):

git push

● Pull changes (get the latest updates from GitHub):

git pull

You might also like