Checking for Differences between local changes
git diff
Checking Differences between Branches
git diff <branch> <checkedout branch>
Git Log lists all commit shas and commits
git log
Tracking All Branches in a repo
git branch -a
this command shows all of the branches even remote branches not locally
Specify Tracking Branch with remote branches
Created Local Branches with remote branches being tracked
git checkout -b <local-branch> <origin/<remote-name>
: manually specifiy a tracking branch with the remote branchgit checkout --track origin/<remote name>
: sets tracking branchgit checkout <remote-branch>
: git will automatically look for remote branch names and add tracking, new commits wont be brought over automatically
Deleting Remote Branches
git push origin --delete <remote-branch-name>