Setting your git username
git config --global user.name "JosiasAurel"Setting your git email
git config --global user.email "[email protected]"cd <dir_name>To move one directory backwards
cd ..To create a new directory
- Initializing a new git repository locally
git init- Staging a change
git add <filename>or use a period (.) to ask git to stage all the modified files in the current directory
git add .- Commit a change
git commit -m "commig message"- Push your changes to the remote counterpart by running
git push origin mainReplace
mainwith the name of the branch
- Pull changes from the remote counterpart by running
git pull origin main