Step-by-step:
Open a coding project in your IDE and launch a terminal instance in that folder after installing git from git-scm.com and checking with git --version in the terminal.
After setting up git tracking using git init, use git add. to take a snapshot of every file (or git add [filename]).[extension] for certain files
Use git commit -m 'first commit!' to save your snapshot, and use git log to see every commit.
Use git checkout -b feature-[name] to establish a branch for new features, then use git merge to merge the modifications to the main branch. [Name of branch]
After setting up git tracking using git init, use git add. to take a snapshot of every file (or git add [filename]).[extension] for certain files
Use git commit -m 'first commit!' to save your snapshot, and use git log to see every commit.
Use git checkout -b feature-[name] to establish a branch for new features, then use git merge to merge the modifications to the main branch. [Name of branch]
Give your coding assistance git rules:
(1) Use git checkout -b feature-[name] to create a feature branch.
(2) Wait for approval,
(3) Ask before merging,
(4) Commit after every sensible change, and
(5) Never commit straight to main.