Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to push my branch - Tutorial "BRANCHES AREN'T JUST FOR BIRDS" failed #7649

Closed
ksngits opened this issue Dec 8, 2015 · 9 comments
Closed

Comments

@ksngits
Copy link

ksngits commented Dec 8, 2015

ksngits:~/workspace/patchwork/contributors (ksngits) $ git-it verify
Verifying "BRANCHES AREN'T JUST FOR BIRDS"...

ACTUAL EXPECTED


"Branch name expected: add-ksngits" != "Found branch as expected!"
"{ [Error: Command failed: /bin/sh -c git reflog show origin/ksngits" != "Changes have been pushed!"
"fatal: ambiguous argument 'origin/ksngits': unknown revision or path not in the working tree." != "File in contributors folder!"
"Use '--' to separate paths from revisions, like this:" != ""
"'git [...] -- [...]'" != null
"]" != null
" killed: false," != null
" code: 128," != null
" signal: null," != null
" cmd: '/bin/sh -c git reflog show origin/ksngits' }" != null
"" != null

FAIL

Your solution to BRANCHES AREN'T JUST FOR BIRDS didn't match the expected output.

Try again!

@AJaramillo54
Copy link

I also receive this error using GitHub for Windows.

SOLVED I hadn't run through GET GIT and GITHUBBIN, as I already had a GitHub account. Running through them solved the issue.

@Baltimorejones
Copy link

I'm receiving the following error: the requested url returned error: 403
fatal: unable to access 'https://github.com/jlord/pathwork.git/': The requested URL returned error: 403

@ghost
Copy link

ghost commented Mar 26, 2016

@Baltimorejones problably you already solve this problem but mayby not... its PATCHWORK not PATHWORK like in your URL, so it's should be https://github.com/jlord/patchwork.git

@jlord
Copy link
Owner

jlord commented May 14, 2016

If anyone is still having trouble with this, please open an issue at the new repo for Git-it

@jlord jlord closed this as completed May 14, 2016
@bitakazemi
Copy link

I get the same error
remote: Permission to jlord/patchwork.git denied to bitakazemi.
fatal: unable to access 'https://github.com/jlord/patchwork/': The requested URL returned error: 403

1 similar comment
@tianhang
Copy link
Contributor

I get the same error
remote: Permission to jlord/patchwork.git denied to bitakazemi.
fatal: unable to access 'https://github.com/jlord/patchwork/': The requested URL returned error: 403

@jlord
Copy link
Owner

jlord commented Jun 20, 2016

If you get this error then you are trying to push to the wrong branch. You should be pushing your changes to your branch on your fork, not the original. If /jlord/ is in the URL path then it is not going to your account, which is why you get the 403 and are unable to access.

You can see what remotes you have set up and their addresses with:

git remote -v

Check that you are pushing your changes to the correct place.

I will update the tips at the bottom of the challenge for this 👍

@zouhairkhallaf
Copy link

zouhairkhallaf commented Nov 27, 2016

1- If you are in this forlder: /usr/local/git-it/patchwork/contributors
2- Go back up one step using (means to: /usr/local/git-it/patchwork) using cd ..
3- do : $ git add -A
4- check your: $ git status
5- You will git this message
On branch add-YOURBRANCHNAME
nothing to commit, working tree clean
6- $ git commit -m "YOUR MESSAGE"
On branch add-YOURBRANCHNAM
nothing to commit, working tree clean
7- NOW DO THIS : $ git push --set-upstream origin add-YOURBRANCHNAME
This should fix it : here is the output
bash-3.2# git push --set-upstream origin add-YOURBRANCHNAME
Counting objects: 11, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (9/9), done.
Writing objects: 100% (11/11), 932 bytes | 0 bytes/s, done.
Total 11 (delta 6), reused 0 (delta 0)
remote: Resolving deltas: 100% (6/6), completed with 2 local objects.
To https://github.com/YOURUSRNAME/patchwork

  • [new branch] add-YOURBRANCHNAME -> add-YOURBRANCHNAME
    Branch add-YOURBRANCHNAME set up to track remote branch add-YOURBRANCHNAME from origin.
    bash-3.2# git-it verify
    ALL SHOULD BE AS GREEN AS THE DOLLAR BILLS

@NinemillaKA
Copy link

still the same error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants