I consider going for Pilgrimage (Hajj), but I cannot quite afford it. Would it be permissible if I got credit from a bank for the missing amount?
Credit is debt with interest. Interest is absolutely forbidden by Allah. It is not lawful to take a loan with interest, even for Hajj. Pilgrimage is not obligatory for you if you cannot afford it. Do not put yourself to trouble.