Skip to content

Instantly share code, notes, and snippets.

Paul Gradie paulegradie

Block or report user

Report or block paulegradie

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
paulegradie / find_new_files.txt
Created Oct 24, 2018
How to find all new files you've added to a branch
View find_new_files.txt
git diff {old_branch}...{new_branch} --name-status --diff-filter=A
e.g. to find a enw file added since branching from master:
git diff master...gradie/sandbox --name-status --diff-filter=A
Options for `--diff-filter
Added (A)
Copied (C)
paulegradie / reset_branch.txt
Created Apr 3, 2018
Force pull - overwrite with content from origin
View reset_branch.txt
git fetch --all
git reset --hard origin/{branch_name}
You can’t perform that action at this time.