Create a Project
1 Initialize the Repository
git init
This creates a .git
folder in your project directory.
2 Create a Python File
Create a new file hello.py
with a print statement.
echo "print('Hello, world!')" > hello.py
3 Stage the File
git add hello.py
4 Commit the File
git commit -m "Initial commit with hello.py"
5 Check Git Status
git status