Main Git commands
git init
: Initialises a new Git repository.git clone
: Copies an existing Git repository.git add
: Adds changes to the staging area.git commit
: Commits changes to the repository.git push
: Pushes changes to a remote repository.git pull
: Pulls changes from a remote repository.git status
: Shows the status of the working directory.git log
: Shows the commit history.git branch
: Shows the branches in the repository.git checkout
: Switches branches.