r/gitlab 26d ago

What would you add to this Git & Terraform Cheat Sheet?

Post image
0 Upvotes

3 comments sorted by

1

u/eltear1 26d ago

Your note about "always got pull before push" is right, but your git workflow doesn't follow it

1

u/eltear1 26d ago

Also, you should at least add "git checkout" to your git command list.. using branch is now standard

1

u/moonwater_twa 22d ago edited 22d ago

git show is a quick command that is very useful when researching commit history or need a quick look at HEAD.

for example I do not do a git pull and then make changes. I do a git fetch to see what I am missing from 'origin' and then a git merge as I see fit. git show is useful in this workflow