Git Life Cycle is composed of four stages:
By following this cycle, developers can keep track of the changes made to the codebase and collaborate with others effectively.
Configuring username and email address
git config --global user.name "wanda azhar"
git config --global user.email "[email protected]"
Verify that the changes were made correctly:
git config --list
Set default branch to main
git config --global init.default branch main
Get help on a command
git help COMMAND
git COMMAND - h
Initialize a new git repository
git init
Clone a repository
git clone (repo url)
Add a file to the staging area