Skip to main content

redact

Function redact 

Source
fn redact(words: &str) -> String
Expand description

Git’s words with any credential a remote URL carries taken out.

git prints the URL it could not reach, userinfo included, and the record this feeds is re-sent on every read and drawn on a page. Everything before the @ is the part a URL keeps its credential in, so it goes whole.