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

Git & GitHub guide

Git commands and version control

Uploaded by

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

Git & GitHub guide

Git commands and version control

Uploaded by

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

Beginner's Guide

Git
and
GitHub
What is Git
The most widely used modern
version control system in the
world today is Git. Git is a
mature, actively maintained
open source project originally
developed in 2005 by Linus
Torvalds, the famous creator
of the Linux operating system
kernel.

1/12
What is version control
Version control, also known as
source control, is the practice
of tracking and managing
changes to software code.
Version control systems are
software tools that help
software teams manage
changes to source code over
time.

2/12
Git Install and Setup
https://git-scm.com/downloads

1. go to this website and


download according to
your operating systems
2. open git-bash and run the
commands given in next
page

3/12
Git Install and Setup
Bash

git config --global user.name


"Your Name"

git config --global user.email


"[email protected]"

4/12
What is GitHub
GitHub is a web-based
platform used primarily for
version control and
collaborative software
development. It uses git, a
distributed version control
system, to track changes in
code and manage projects.

5/12
GitHub Setup
https://github.com

1. go to this website and sign


up or log in
2. go to reposetries and click
on new
3. follow the next steps

6/12
Create Repository
1. give a meaningful
repository name
2. give description to your
project
3. set the repository should
be visible for all or only
visible for you
4. add a readme.md file
5. click on create

7/12
Connect with git

1. Go to your desktop andBash


open git-bash
2. locate to your folder where
you want to save github
files
3. follow next page
commands

8/12
Connect with git
Bash

git init

git remote add origin https://


github.com/your_repo/test.git

git branch -M main

9/12
Connect with git
Bash

git commit -m "first commit"

git push -u origin main

10/12
Connect with git

now your local system and


Bash

github is connected

the official git and github


cheatsheet is here

11/12
“With Git and GitHub, you don't just
write code—you create a legacy.”
Bash

You might also like