Git Tips and Tricks

Git Config Example ~/.gitconfig 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 [user] name = John Smith email = jsmith@example.com [color] diff = auto status = auto branch = auto [push] default = simple [alias] co = checkout ci = commit br = branch st = status unstage = reset HEAD – last = log -1 HEAD Revert a Commit gir –reset ­­soft ‘HEAD^’ Show a nice log history git log –stat –pretty –graph Push to a remote branch from a different local branch For example, to push from local sc9 to remote master:
Continue reading

Author's picture

Jamie Curnow

Web Tech Ninja • Project Manager • Amateur Photographer • Social Scientist • Taurus

Brisbane