Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

git error: "fatal: not a valid revision"

I am collaborating on a repository where they upload translations of JS documentation. I translated a new file and I want to add it to such repository. The owners told me to do a pull request: that I should create a fork, create a branch, commit my translation and then make the pull request.

I've done all those things but I get the mistake "fatal: not a valid revision". I understand I must be missing the version number but since I am just uploading a new documentation, I do not know how that can be possible. This is what I have written in git bash so far to no avail:

git add ES6.md

That's my translation.

git commit -m "new translation"

git request-pull -p "destructuring es6" <repo URL>

I think I'm missing the :master at the end but I'm not sure if I should use it. This is the error message I get:

fatal: not a valid revision: destructuring es6
like image 852
vester Avatar asked Jun 15 '17 22:06

vester


1 Answers

The owners from the repository asked me to do through GitHub, so I followed all those steps they told me but on GitHub.

I wanted to test my git knowledge but I didn't know people make pull requests through the website.

like image 98
vester Avatar answered Oct 07 '22 10:10

vester