Skip to content

Latest commit

 

History

History

git-basics

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 

Git Basics

Initialize Git Repository

git init

Stage changes

git add .
#OR
git add file1.txt file2.txt
#OR
git add *.txt

Commit changes

This will open Default Code Editor and in it We'll be able to Write out Commit Message (Short Description) along with Commit Description (Long Description)

git commit

# Structure will be like

#1 | Commit Message
#2 |
#3 | Commit Description

This will stage and commit changes in a single command

git commit -am "Message"