Complete the code to initialize a new Git repository.
git [1]The git init command creates a new Git repository in the current folder.
Complete the command to save changes to the local repository.
git [1] -m "Save changes"
The git commit command saves your changes to the local repository with a message describing the changes.
Fix the error in the command to upload local commits to the remote repository.
git [1] origin mainThe git push command uploads your local commits to the remote repository named 'origin' on the 'main' branch.
Fill both blanks to create a new branch and switch to it.
git [1] [2]
The command git checkout -b branch_name creates a new branch and switches to it. Here, checkout is used with -b option to create and switch branches.
Fill all three blanks to list all branches and show the current branch.
git [1] && git [2] -v && git [3]
The command git branch lists all branches and shows the current one with a star. The -v option shows last commit info. git status shows the current state of the working directory.