I am working on a branch of git. I want to take pull on this branch specifying the URL alongwith it. I have tried
git pull origin <branch> <url>
but it says error "fatal: Invalid refspec "
Both commands when ran independently works fine.
1 ) git pull origin <branch>
Takes pull from successfully.
2) git pull <url>
Takes pull from specified URL but from master branch instead.
I want to take pull from specifying the URL alongwith it so that it doesn't read git's config file and takes pull from 'branch' and 'url'.
You need to provide the command git pull web_url branch_name
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With