You can use quotation marks to make the parser less inclined to dissect your URL,
pkg> dev "https://femtotrader@github.com/femtotrader/MyPrivateRepository.jl"
or the functional form to be precise in your request.
using Pkg
Pkg.develop(url = "https://femtotrader@github.com/femtotrader/MyPrivateRepository.jl")