Git command yang paling sering digunakan
- List all local branches:
This command will show all local branches, with the current branch highlighted.
- List branches with recent commits: To see the most recently active branches along with the last commit on each, you can use:
This will list the branches sorted by the last commit date, showing how long ago the last commit was made.
- List recently checked-out branches: To show branches that have been checked out recently (useful to see your working history):
This will display a log of all your recent Git actions, including branch checkouts. You can look for
checkout
actions to see which branches you’ve been switching between.