git basic command tutorial 1

git basic command tutorial

#Initialize Repo
cd my_awesome_project
git init
#NOTE:you need to setup your global (--global) or project user
git config --global user.name POG
git config --global user.email POG@gmail.com
#Create a README.md and .gitignore file then stage all changes
git add .
#Commit them
git commit -m "Create REAME and gitignore"

Here is what the above code is Doing:
1. Create a new directory for your project
2. Initialize a new git repository
3. Create a README.md file
4. Create a .gitignore file
5. Stage all changes
6. Commit the changes

Similar Posts