by vedang · 14y ago · 0 comments
This is a great rule of thumb, which I have had to repeatedly drill into my team-mates. The crux of the problem, I've come to realise, is that people can't differentiate between a "local" commit and a "published" commit.
Git tutorials need to focus a bit more on the nature of git than on simply showing the basic operations.
[alias]
l = log --oneline --decorate --graph
la = log --oneline --decorate --graph --all
--online --graph : Will really help visual learners--decorate : Makes it super obvious how labels and tags work
--all : Extends the usefulness of --decorate to branches and remotes