Closed nonunicorn closed 2 years ago
@nonunicorn Sir, May I know why am I getting this error ? $ git push origin Rithya remote: Permission to Onelinerhub/onelinerhub.git denied to RithyaReddy. fatal: unable to access 'https://github.com/Onelinerhub/onelinerhub.git/': The requested URL returned error: 403
zc
That's because you should create pull requests instead of pushing changes directly.
But during that I have encountered with another error where I have searched in google and asked some of my seniors but I didn't do it intentionally.
ERROR $ git push origin RithyaReddy To https://github.com/RithyaReddy/onelinerhub.git ! [rejected] RithyaReddy -> RithyaReddy (non-fast-forward) error: failed to push some refs to 'https://github.com/RithyaReddy/onelinerhub.git' hint: Updates were rejected because the tip of your current branch is behind hint: its remote counterpart. Integrate the remote changes (e.g. hint: 'git pull ...') before pushing again. hint: See the 'Note about fast-forwards' in 'git push --help' for details.
This is the error previously encountered my me sir. I am sorry sir. Sir, can you please remove the restriction and look into the the above error also.
Oh, it seems like you need to git pull
from your fork first, then do the push and only then - create pull request to our repository. Let me know if that helps.
@nonunicorn Thankyou sir I am able to do now
Please help us write most modern and shortest code solution for this issue: How to fold (technology: vim)
Fast way
Just write the code solution in the comments.
Prefered way