If it's a Shimano chain they sell special pins for rejoining links. There are different sized pins used for different speed chains, 8sp, 9sp, 10sp, etc. These are one use only and cannot be removed and replaced with a new pin in the same link. Personally, and many others here, just use a quick link and skip all of that.