Git configuration and set of aliases for git terminal.
- Open your global
.gitconfigfile in a text editor:
nano ~/.gitconfig-
Copy and paste the configuration from bear-git-config.txt your
.gitconfigfile -
Replace
<name>and<email>with your actual name and email address. -
Save and close the file
Below are the aliases defined in the provided configuration:
-
br: Shortcut forbranch- Usage:
git br - Description: Lists all branches in the repository.
- Usage:
-
co: Shortcut forcheckout- Usage:
git co <branch> - Description: Checks out a specified branch.
- Usage:
-
st: Shortcut forstatus- Usage:
git st - Description: Shows the working tree status.
- Usage:
-
lg: Logs with a simple oneline graph- Usage:
git lg - Description: Displays the commit history in a simple oneline format with a graph and decorations.
- Usage:
-
lga: Logs with a simple oneline graph for all branches- Usage:
git lga - Description: Displays the commit history for all branches in a simple oneline format with a graph and decorations.
- Usage:
-
lol: Pretty log with detailed formatting- Usage:
git lol - Description: Shows the commit history with a detailed and colorful graph, including commit hash, decorations, subject, date, and author.
- Usage: