8
I have a local branch called ResultadoAPI
, the remote is located in origin/Feature/Resultadoapi
I tried to push in several ways but this remote continues outdated
daniela.morais@tusk:~/Development/git/oknok-clicktag$ git push origin origin/feature/ResultadoAPI
Everything up-to-date
daniela.morais@tusk:~/Development/git/oknok-clicktag$ git push origin ResultadoAPI
Counting objects: 65, done.
The command git push origin ResultadoAPI
created ANOTHER remote and is pushing it. How do I push properly on the remote?
**UPDATE
daniela.morais@tusk:~/Development/git/oknok-clicktag$ git status
On branch ResultadoAPI
Your branch is ahead of 'origin/feature/ResultadoAPI' by 9 commits.
(use "git push" to publish your local commits)
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)
modified: oknok-commons/src/main/java/oknok/auth/AuthFilter.java
no changes added to commit (use "git add" and/or "git commit -a")
daniela.morais@tusk:~/Development/git/oknok-clicktag$ git pull
Already up-to-date.
Dou git add -A
,git commit -m "Nome do commit"
, the commit is done with success and try to push but is not possible
Maybe the problem is /
, but even with quotes I can’t push:
daniela.morais@tusk:~/Development/git/oknok-clicktag$ git push origin "feature/ResultadoAPI"
error: src refspec feature/ResultadoAPI does not match any.
error: failed to push some refs to 'ssh://[email protected]/oknok-clicktag.git'
daniela.morais@tusk:~/Development/git/oknok-clicktag$ git push origin "origin/feature/ResultadoAPI"
Everything up-to-date
daniela.morais@tusk:~/Development/git/oknok-clicktag$ git push origin "feature/ResultadoAPI:feature/ResultadoAPI"
error: src refspec feature/ResultadoAPI does not match any.
error: failed to push some refs to 'ssh://[email protected]/oknok-clicktag.git'
Put git status, you pull ? if you’re using github in public RP, post the link
– Isvaldo Fernandes
Yes, it has files to commit and is updated when I pull.
– Daniela Morais
then, try & #Xa;git add --all , git commit -a
– Isvaldo Fernandes
Daniela. You can try
git push -u origin ResultadoAPI:feature/ResultadoAPI
? If it works out, let me know.– Anthony Accioly
Assuming you still have the branch and the hehehe project, I haven’t seen the date.
– Anthony Accioly