Įxamine the difference between the working directory and the index: git diffĮxplore the difference between the last commit and the index: get diff -cached List all commits from all branches: git log -allĬompare two branches by showing which commits from the first branch are missing from the second branch: git log. List the commit history of the current branch: git log Show the state of the current directory (list staged, unstaged, and untracked files): git status Open Git’s global configuration file: git config -global -edit Managing Files Set a default text editor: git config -system core.editor For example, you can use the alias st for the status command by typing the command: git config -global alias.st status Setting shortcuts for commonly used commands can speed up and simplify development. Note: Git requires you to type out the entire command to perform actions.
0 Comments
Leave a Reply. |