Because I’m constantly forgetting the syntax for this…
git diff COMMIT^ COMMIT
Is there a shorter or better way to do this? Would love to hear about it in the comments.
design & development
Because I’m constantly forgetting the syntax for this…
git diff COMMIT^ COMMIT
Is there a shorter or better way to do this? Would love to hear about it in the comments.
If you are pushing a local branch to your remote repo for theĀ first time:
git push -u origin branch_name
If you already have a local branch that relates to the a remote branch, but it isn’t tracking yet:
git branch -u origin/branch_name
*Note: these instructions assume you have the branch in question checked out already.