Git Command Quick Reference

Discussion


The commands in this article is the result of searching online for solution to common tasks during a project.

List all Tags

git tag -l

Checkout a Specific Tag

git checkout tag-name

Color the Git Output

git config --global color.ui true

Create a Branch and Push

git co branch-name
git push -u https://github.com/repo-name.git branch-name

Create a Tag from a Branch

git tag -a tag-name -m 'commit message'

How to Push Tag

git push --tags


Related Articles

git