Useful Git commands for beginners to get started!

Anish Shetty
1 min readJan 7, 2023

--

For a beginner, learning and working with Git can be overwhelming. As there are multiple commands and hundreds of tutorial videos and articles spread across the web.

The following are the git commands I use, that you need to know in order to get started as a beginner.

git init : Creates a new Git repository

git add * : Add all file contents to the index. (“*” refers to all files)

git commit -m ‘Initial Commit’ : Commit the changes before pushing them to the remote repository

git push origin main : Push the changes to the remote branch in GitHub

Other useful Git commands

git remote add origin yourRepositoryURLPath : Creates a remote connection called origin pointing back to the remote repository

git pull : Used to fetch and download content from a remote repository and immediately update the local repository to match that content

git status : Displays the state of the working directory and the staging area

To learn more about git refer :

#github #git #learning #githubeducation #beginners

--

--

Anish Shetty

BI Developer - Microsoft Certified Data Analyst || Converts Data Into Meaningful Visuals