Thursday, November 12, 2015

Git - Useful Commands

This is a list of useful commands to use with Git. Once in a while, my Windows GitHub GUI app is not working as I would like and I need to do some back-end coding to speed things up. Other times, I just want to bypass using the GUI to speed up my coding or to automate processes. These commands are useful to know and saves time on searching.


Git Reference URL

Refresh my branch list (all branches including master)

- list both remote-tracking branches and local branches.
$git branch -a

Refresh my branch list

- list the remote-tracking branches.
$git branch --remotes
$git branch -r


No comments:

Post a Comment