Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagebash
git checkout master # If you are not already in master.

git branch -D <branch_name> # Since the branch has commits that weren't merged,
							# GIT will complain if you try to delete the branch with -d
							# Thus, force it with -D

git pull origin master  # Fetch the latest changes from remote and merge them to your local repository.

If you were working on master, reset the HEAD back to where origin was and pull master.

...

Code Block
languagebash
git reset --hard origin/master # Reset back to origin.

git pull origin master # Fetch the latest changes from remote and merge them to your local repository.


Generating a GitHub Pull-Request from a Fork

...