Configuring aliases for git commands

Report a typo

You are working in a development environment and need to configure Git with specific settings. Your task is to write the Git commands that will set up useful aliases.

Write the necessary Git commands below line by line to set aliases for the following commands:

  • Create an alias "re" for the "remote" command;

  • Create an alias "a" for the "add" command;

  • Create an alias "cm" for the "commit" command;

  • Create an alias "pu" for the "push" command;

  • Create an alias "co" for the "checkout" command;

  • Create an alias "br" for the "branch" command.

The tests will run commands using these aliases. If not set, you'll get output like "re is not a git command". Ensure to set all aliases before running the tests.

Write a program
# Write your solution below
# Ensure to type the commands line by line

Create a free account to access the full topic