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

Git Hub Notes

The document discusses Git and GitHub. It provides instructions on setting up a GitHub account with a username, email, and password. It then discusses version control systems and explains that Git is a popular open source version control system. GitHub is described as a website where developers can store and manage code using Git. Steps are provided to create a new repository on GitHub and make commits. Basic Git commands like clone, status, add, and commit are explained.

Uploaded by

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

Git Hub Notes

The document discusses Git and GitHub. It provides instructions on setting up a GitHub account with a username, email, and password. It then discusses version control systems and explains that Git is a popular open source version control system. GitHub is described as a website where developers can store and manage code using Git. Steps are provided to create a new repository on GitHub and make commits. Basic Git commands like clone, status, add, and commit are explained.

Uploaded by

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

Git hub user.

name=SJ-Harshith

Git hub [email protected]

Git hub pass=#Harshithsj@9480436557#

GIT:-It is a version control system.

A Version control system is a tool to track the changes made in code

IT IS :-popular

Free and open source

Fast and scalable

GITHUB:-It is a website where developer can upload ,store and manage their code using git.

Create a new repository (creating a new project and creating new folder for that project) in github

To create a new repository go to the repository click new

Then click add readme to give brief description,CREATE REPOSITORY

Changes made are called commit in github

For add next line <br>

After git setup we need to do git configure(it means we are saying to git in which account u are changing
the code)
We will open vscode

Create a folder ,open the folder , open terminal press + to start the terminal
IN TERMINAL WE CAN CHECK GIT VERSION
git --version

clear(to delete the history in terminal)

BASIC COMMANDS IN THE GIT

CLONE=Cloning a repository on our local machine


git clone <some link>

Now we are in the folder created in local machine


in order to go to the folder that we cloned from git we use

cd cloned folder name (change in directory ,now we are changing directory from local folder to the
cloned folder )
in order to know in which folder we use using

See before > is the folder in which we are working

In order to see the which files are present in working folder


ls

git status(display the status of our code)

It is saying that whatever the code in this cloned folder is same as the code present in git hub

when we made changes in the code of cloned folder ,it is of modified stage,if we do git status it shows
modified and the folder in which it is modified

if we create a new file in cloned folder it is considered as untracked files.it means git does know anything
about it
git add .
To make modified file and untracked file in staged file we use for all the files at

once or we can use individually by git add filename.

You might also like