Initializes (or starts) your current working directory (folder) as a Git repository (repo).
https://www.github.com/username/repo-name
Copies an existing Git repo hosted remotely.
Shows your current Git directory’s remote repo. Use the -v flag for more info.
https://www.github.com/username/repo-name
Adds the Git upstream to a URL.
Checks the status of your Git repo, including files added that are not staged.
Stages modified files. If you make changes that you want included in the next commit, you can run add again. Use “git add .” for all files to be staged, or specify specific files by name.
Removes a file while on staging while retaining changes within your working directory.
Commits staged files with a meaningful commit message so that you and others can track commits.
Condenses all tracked files by committing them in one step.
Modifies your commit message.
Lists all current branches. An asterisk (*) will appear next to your
currently active branch.
Creates a new branch. You will remain on your currently active branch
until you switch to the new one.
Switches to any existing branch and checks it out into your current
working directory.
Consolidates the creation and checkout of a new branch.
Deletes a branch.
Pushes or sends your local branch commits to the remote repo
Note: some repos use master instead of main in their commands.
Fetches and merges any commits from the tracking remote branch.
Merges the fetched commits.
Compares modified files that are in the staging area.
Displays the diff of what is in `a-branch` but is not in `b-branch`.
Uses commit id to show the diff between two specific commits.