Linux command
git-local-commits 命令
趣味
复制后可按需替换文件名、目录或参数。
常用示例
Show local commits not pushed
git local-commits
说明
git local-commits lists commits on the current branch that haven't been pushed to the remote. This git-extras command provides a quick way to see what changes will be pushed before actually pushing them. The command compares the current branch with its upstream tracking branch and shows commits that exist locally but not on the remote. It is functionally similar to `git log @{u}..HEAD` but provides a more memorable and explicit command for this common operation.
FAQ
What is the git-local-commits command used for?
git local-commits lists commits on the current branch that haven't been pushed to the remote. This git-extras command provides a quick way to see what changes will be pushed before actually pushing them. The command compares the current branch with its upstream tracking branch and shows commits that exist locally but not on the remote. It is functionally similar to `git log @{u}..HEAD` but provides a more memorable and explicit command for this common operation.
How do I run a basic git-local-commits example?
Run `git local-commits` in a terminal, then adjust file names, paths, flags, or remote targets for your system.