I followed the instructions correctly but then when I go to push I get this error. The repo was up to date beforehand.
! [rejected] master -> master (fetch first)
error: failed to push some refs to ''
hint: Updates were rejected because the remote contains work that you do
hint: not have locally. This is usually caused by another repository pushing
hint: to the same ref. You may want to first integrate the remote changes
hint: (e.g., 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
Are you sure you followed the instructions exactly?
http://rtyley.github.io/bfg-repo-cleaner/#usage
The error message you're seeing is what you would see if you hadn't used the '--mirror' flag when doing the clone. To ensure you get a fully updated repo, it's best to redo your clone, this time ensuring you use '--mirror', and run The BFG again.
Thank you! I forgot to clone. It's working now.
Try this git command
git push origin master --force
or short of force -f
git push origin master -f
its works thanks #@javparra
its working @javparra
its working thanks @javprra
it's working nicely thanks for help @javparra
it working @javparra
Thanks @javparra !
Works! Thx @javparra
hey its working !!! thank you bro !!!
Yeah! Its works.
Thanks
Thank you so much @javparra
It's works..Thanks @javparra
Greate... thx a bunch!
Thanks Ya
Its working thank you
Excelente, me alegro que te haya podido ayudar.
;)
El 4 ene. 2018 13:28, "manisha-sinha01" notifications@github.com escribió:
Its working thank you
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/rtyley/bfg-repo-cleaner/issues/29#issuecomment-355328375,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AHU06jgy89Q2DIwZCHN8ERUGZthV0sXuks5tHPwUgaJpZM4Bc_Ve
.
Thank you very much @javparra
Thanks, great solution!
thank @javparra
Thanks @javparra
Thanks @javparra
this work fine for me. thanks @javparra
I am having the same issue, use git remote -v to check the origin list
try changing git remote repo name by using git remote add origin [repo-url] and then push
Had same issue with a Beanstalk repo. Discovered by default they disable "non Fast-Forward pushes" on their end. To enable you need to check a box located https://[account-name].beanstalkapp.com/repositories/[git-repo]/edit.
Thanks. It;'s working
Its works, thanks for #@javparra
i found this helpfull, thanks!
it's working nicely, thanks idea @javparra
@javparra thanks for the advice. now working.
@javparra Thanks
@javparra thanks so much
I had the same problem, using bitbucket. Solved after the --force, but I'm still wondering why it needs to be forced. Thanks anyway! <3
Thanks
i had the same issue but it has bn fixed
thanks @javparra
thanks @javparra ^^
thanks. it works with me! ><
Thanks @javparra
It's working
Thanks @javparra
It's working
Working perfect thank @javparra
It's working, thanks for the help @javparra
special thanks! it working for me! @javparra
Thanks man @javparra
thanks broth you save my night!
thank you so much @javparra
Its working Thank you so much @javparra
thanks @javparra
@javparra most don't know the difference between adding mirror and without mirror can you please add it in documentation in the website that adding mirror is important
Atlast it worked....Thanks alot @javparra. Can you explain what went wrong?
@javparra thanks thanks thanks
Thank you git push origin master --force worked @javparra
thank you it helps me @javparra
Thanks.
3 years later and still... thanks @javparra
@javparra thank you so much this does works but can anybody explain why that error was coming?
still works.......thx
it's working Thank you @javparra .but can anyone explain why that error was showing?
Hi guys, I also have a kind of similar problem
$ git push -u origin master
error: src refspec master does not match any.
error: failed to push some refs to 'https://github.com/xyzzzz.git'
Try this git command
git push origin master --force
or short of force -fgit push origin master -f
thanks, with this command, my problem solved, :-)
thanks @javparra its working
Hi guys please help ,
ANNET@ANN MINGW64 ~/........../.....(master)
$ git push origin master
error: src refspec master does not match any.
error: failed to push some refs to 'ssh://github.com/............../..............git'
thanks yo . javara
follow this method step by step
1.git init
2.git config user.name "someone"
3.git config user.email "[email protected]"
4.git add *
5.git commit -m "some init msg"
thanks it's work !!
thanks its works 100%
@javparra
Try this git command
git push origin master --force
or short of force -fgit push origin master -f
great job bro
it's working)thank u so much @javparra
It's working. Thank you so much @javparra
Great!!! It's working. Thanks alot!!!!
Thanks @javparra the command is perfect.
Works! Thanks a lot! @javparra
Even after ensuring I have cloned with --mirror, I get the error:
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to '[email protected]'
Edit and solved: I needed to "unprotect" the master branch at GitLab; after that git push worked
Write this command on terminal
git push origin master --force
This means you are forcing code to push on remote and this works for me hopefully it will work for you as well
If you got
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'ssh://git*****'
You need unprotect the branch,
Refer to https://docs.gitlab.com/ee/user/project/protected_branches.html
Navigate to your project’s Settings ➔ Repository
Scroll to find the Protected branches section.
From the Branch dropdown menu, select the branch you want to protect and click Protect.
In the screenshot below, we chose the develop branch.
thank you so much @javparra
thank you very much @javparra
Thanks @javparra
Thanks @javparra
error: failed to push some refs to ''
This will happen when someone tries to push the files before committing
Thanks it worked @javparra
Thanks @javparra, its working!
Thanks So much @javparra
@javparra Hola Javier, me ha funcionado perfectamente pero me podrias explicar brevemente el origen de este error, y si tengo que hacer esto cada vez que quiera hacer un push? muchas gracias
Jackpot!!!
Thanks it worked @javparra
Thank again @javparra
Ya it's working
@javparra i've serch all the day, you really save me, thank you!! (sorry if i write something wrong i dont speak inglish jajaj)
No te preocupes, tampoco soy bueno con el inglés. Enviado desde mi smartphone Samsung Galaxy.
-------- Mensaje original --------De: Facundo Sanchez notifications@github.com Fecha: 26/5/19 23:05 (GMT-03:00) Para: rtyley/bfg-repo-cleaner bfg-repo-cleaner@noreply.github.com Cc: Javier Parra javparra@gmail.com, Mention mention@noreply.github.com Asunto: Re: [rtyley/bfg-repo-cleaner] [rejected] failed to push to some refs (#29) @javparra i've serch all the day, you really save me, thank you!! (sorry if i write something wrong i dont speak inglish jajaj)
—You are receiving this because you were mentioned.Reply to this email directly, view it on GitHub, or mute the thread.
[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/rtyley/bfg-repo-cleaner/issues/29?email_source=notifications\u0026email_token=AB2TJ2XZZENTI7T2M7YGYLDPXM6VNA5CNFSM4ALT6VPKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWIS6VI#issuecomment-496054101",
"url": "https://github.com/rtyley/bfg-repo-cleaner/issues/29?email_source=notifications\u0026email_token=AB2TJ2XZZENTI7T2M7YGYLDPXM6VNA5CNFSM4ALT6VPKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWIS6VI#issuecomment-496054101",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]
@javparra : Thanks that worked, but I have lost the other files from master. Is there any way to retain the old files and just push the new file to the master?
Yes the option is obviously we can create a pull request again from another branch but is there any way to retain the other files in master instead of following pull request procedure.
Works! Thanks a lot! @javparra
git push origin master -f
But I highly recommend that you must not push to the master.
Better create your own branch and make your changes there
and push your changes to your branch like this
git add -A (to save your changes to stage)
git commit -m "Your commit message eg.(Able to login)" ( to commit your changes)'
git push origin branchname (to push it your repository)
and create merge request(gitlab)/pull request(github) and let your lead to code review and merge it to the master :)
if your tech lead wants you to correct something in your branch, go to your branch and correct it.
to push the changes to your your branch in gitlab
git add -A (to save your additional changes)
git --amend ( to add your changes to your first commit 'Able to login')
git push origin branchname -f (to push your additional changes to the repository)
git push --set -f origin master
worked for me
$ git push origin master --force
error: src refspec master does not match any
error: failed to push some refs to 'https://github.com/aarifali/sampleweblogin.git'
@javparra : Thanks that worked, but I have lost the other files from master. Is there any way to retain the old files and just push the new file to the master?
Yes the option is obviously we can create a pull request again from another branch but is there any way to retain the other files in master instead of following pull request procedure.
yes
git reset --soft HEAD~1
git push --set -f origin master
worked for me
thanks, it worked for me!
"git push origin master -f" work correctly, thanks !
git push --set -f origin master worked for me! Thanks
This also can happen in git push --set-upstream origin new-branch if a new-branch name contain typo or mistype
Try this git command
git push origin master --force
or short of force -fgit push origin master -f
thank you @javparra, it worked like magic.
git push --set -f origin master
worked for me as well
It worked. Thanks a bunch @javparra
Wow... Thanks so Much @javparra
thinks @javparra
Try this git command
git push origin master --force
or short of force -fgit push origin master -f
thanks so much. It worked
Thanks, @javparra.
Wow ! it works like a charm, Thanks .....
@javparra you are a superman
It worked. tysm!
Its not working for me. I have cloned it and tried also the -force option :(
still get the error above
It worked :)
thnx
Try this git command
git push origin master --force
or short of force -fgit push origin master -f
Thanks it worked for me
git push origin master --force
This will work
Try this git command
git push origin master --force
or short of force -fgit push origin master -f
It works for me,thanks..
Thumbs up man!!!! it worked.
its not working
tell me your error!
error: failed to push some refs to
i tried these codes but it doesnt work for any of code
git push origin master
git push origin master -f
git add .
git commit -m "initial commit"
git push -u origin master
no man it doesnt work too...
error: src refspec master does not match any
error: failed to push some refs to
threse are the errors showing in cmd
close your terminal.
If you have mac. Go to your projet directory click window+shift+. will give you all hidden folders. Delete the git files. Do again same process will work
Check if there are changes you have not committed.
It works, thanks :+1: @javparra
unable to auto-detect email address ()
its work thank you @javparra
Thank you @javparra it works
Try this git command
git push origin master --force
or short of force -fgit push origin master -f
thank you .its working
I set VSCode on my new computer, I believe this happens because is a "remote" push. Thank you @javparra 💃
packet_write_wait: Connection to 140.82.113.3 port 22: Broken pipe
fatal: the remote end hung up unexpectedly
fatal: the remote end hung up unexpectedly
:-(
Hi! Why am I receiving this email?
Thanks
On Sat, Nov 23, 2019 at 12:30 PM Italo Perez notifications@github.com
wrote:
packet_write_wait: Connection to 140.82.113.3 port 22: Broken pipe
fatal: the remote end hung up unexpectedly
fatal: the remote end hung up unexpectedly:-(
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/rtyley/bfg-repo-cleaner/issues/29?email_source=notifications&email_token=AL7M5PH25RVL4IOG4Z6KUUDQVFSDXA5CNFSM4ALT6VPKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEE7ZZ6A#issuecomment-557817080,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AL7M5PGQRBYQJ5NSFHQFNKLQVFSDXANCNFSM4ALT6VPA
.
Your error might be because of the merge branch.
Just follow this:
step 1 : git pull origin master (in case if you get any message then ignore it)
step 2 : git add .
step 3 : git commit -m 'your commit message'
step 4 : git push origin master
Refer this ticket on stack overflow https://stackoverflow.com/questions/28429819/rejected-master-master-fetch-first/39669406
@Marciagzq You have once commented in this issue checkout here
--force did not work for me :(

I am getting this error. I am not sure why.
--forcedid not work for me :(
try this steps
step 1 : git pull origin master (in case if you get any message then ignore it)
step 2 : git add .
step 3 : git commit -m 'your commit message'
step 4 : git push origin master
I am getting this error. I am not sure why.
git reset --mixed origin/master
git add .
git commit -m "This is a new commit for what I originally planned to be an amendmend"
git push origin master
It worked for me.
Credits: https://stackoverflow.com/a/18589043/3272407
--forcedid not work for me :(
try this steps
step 1 : git pull origin master (in case if you get any message then ignore it)
step 2 : git add .
step 3 : git commit -m 'your commit message'
step 4 : git push origin master
yeah, I saw those docs too. I think there is something else going on. I've never seen this before in all the years I have been gitting
Try this git command
git push origin master --force
or short of force -fgit push origin master -f
Thanks @javparra
It worked!
til this day it works! thank you so much @javparra
thank you@javparra
@javparra Thanks
Are you sure you followed the instructions exactly?
http://rtyley.github.io/bfg-repo-cleaner/#usage
The error message you're seeing is what you would see if you hadn't used the '--mirror' flag when doing the clone. To ensure you get a fully updated repo, it's best to redo your clone, this time ensuring you use '--mirror', and run The BFG again.
Why should we clone a repo before pushing it?
For me it was that I didn't make commit
git add .
git commit -m "initial commit"
git push -u origin master
Good, worked
Try this git command
git push origin master --force
or short of force -fgit push origin master -f
Thank you soo much, it works now for me too! :)
Try this git command
git push origin master --force
or short of force -fgit push origin master -f
Thanks This works like a charm
its working,thanks @javparra
@javparra its work
thank you it works perfectly
Thank you it works perfectly
Thank you it works for me
thanks for the help
works for me ..
thankyou @LucasCaputo
Try this git command
git push origin master --force
or short of force -fgit push origin master -f
it worked for me too. Thanks man.
Try these steps it will successfully push when you had seen some issus while push
try the above steps...you will
Try this git command
git push origin master --force
or short of force -fgit push origin master -f
Muchas gracias tu respuesta fue de gran ayuda
🖒
El sáb., 7 mar. 2020 0:23, yoelysfigueredopadron notifications@github.com
escribió:
Try this git command
git push origin master --force
or short of force -fgit push origin master -f
Muchas gracias tu respuesta fue de gran ayuda
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/rtyley/bfg-repo-cleaner/issues/29?email_source=notifications&email_token=AB2TJ2VDE6ZXTFYYHBWTQ5TRGG443A5CNFSM4ALT6VPKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEODNYIQ#issuecomment-596040738,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AB2TJ2UCD475XGZ2EW7BW2LRGG443ANCNFSM4ALT6VPA
.
Try this git command
git push origin master --force
or short of force -fgit push origin master -f
Thanks. It worked for me: git push origin master --force
thanks. It worked....
Try this git command
git push origin master --force
or short of force -fgit push origin master -f
Thanks. It worked ...
Try this git command
git push origin master --force
or short of force -fgit push origin master -f
It worked!! Thanks
thanks
في السبت، 4 أبريل 2020 في 3:40 م تمت كتابة ما يلي بواسطة sth34 <
[email protected]>:
Try this git command
git push origin master --force
or short of force -fgit push origin master -f
It worked!! Thanks
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/rtyley/bfg-repo-cleaner/issues/29#issuecomment-609022820,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AIIWCEH7Q5L7TX5BCVKK2UDRK4TE3ANCNFSM4ALT6VPA
.
it did not work for me
Try this git command
git push origin master --force
or short of force -fgit push origin master -f
Thank you man
its working thanks @javprra
I followed the instructions correctly but then when I go to push I get this error. The repo was up to date beforehand.
! [rejected] master -> master (fetch first)it
error: failed to push some refs to ''
hint: Updates were rejected because the remote contains work that you do
hint: not have locally. This is usually caused by another repository pushing
hint: to the same ref. You may want to first integrate the remote changes
hint: (e.g., 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
I had same problem because i was one folder away in my bash pwd to the main repository folder .May be it will work for some
Try this git command
git push origin master --force
or short of force -fgit push origin master -f
still its no t working
thank you this is working
Try this git command
git push origin master --force
or short of force -fgit push origin master -f
thank you this is working
@javparra it worked
Try
Thank you , it worked
Try this git command
git push origin master --force
or short of force -f
git push origin master -f
Thank you, It works! :100: :+1: @javparra
Salut
It worked. 👍
Its working.Thank u
push -f works
Try this git command
git push origin master --force
or short of force -fgit push origin master -f
It works , great man
thanks it work, git push origin master -f
Try this git command
git push origin master --force
or short of force -fgit push origin master -f
thanks It works for me
Try this git command
git push origin master --force
or short of force -fgit push origin master -f
Thx it works
Thanks a ton @javparra 👍
thank @javparra it works
Thnks a Alot It works
On Sat, May 23, 2020 at 2:21 PM thanghoangxt18 notifications@github.com
wrote:
thank @javparra https://github.com/javparra it works
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/rtyley/bfg-repo-cleaner/issues/29#issuecomment-633009270,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AKFYR7D7BD7XTQYL3E7ZBRDRS6FBFANCNFSM4ALT6VPA
.
I had same issue, but on some pages they mentioned
" git push origin master --force "
could cause some problem in future. but not sure.
Try this git command
git push origin master --force
or short of force -fgit push origin master -f
thanks man... worked for me :)
you are pushing an empty repo sometimes
git push origin master --force
git push origin master
both the commands are not working for me ... plz help out
it doesn't work
Then how should I push the file into GitHub?
Try this git command
git push origin master --force
or short of force -fgit push origin master -f
thanks
Try this git command
git push origin master --force
or short of force -fgit push origin master -f
nice
This error could have occured in following scenarios as well
If you are trying to push commits to someone else's branch while your windows is configured with your github credentials
I have got this error in above scenarios, and this is how i solved it
Deleted github credentials stored in Credential Manager in Windows
git push -u (repo-url) (branch-name)
If you didn't make the first commit from github (by creating a readme) you will need to do git commit -am "{commit message}" prior to git push origin master
@javparra you are pro, dude! Thanks a lot!
Try this git command
git push origin master --force
or short of force -fgit push origin master -f
Thankyou its work
Thanks..it worked
git push origin master --force
git push origin masterboth the commands are not working for me ... plz help out
Hey @Shivaraj1995 follow these steps::
This is how I pushed my code to github first time.
error: failed to push some refs to 'https://github.comt'
its error
failed to push some refs to 'https://github.com/1706810048/AniPracticePython.git'
NOTE / $ git remote add ** URL (use any name other than origin because origin was exist already for example "alhilo")
IT WORKS FOR ME
$git remote add alhilo
$ git push -u alhilo master
😎
El vie., 7 ago. 2020 a las 5:59, Hamza Ilyas (notifications@github.com)
escribió:
Try this git command
git push origin master --force
or short of force -fgit push origin master -f
It Works! Thanks alot
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/rtyley/bfg-repo-cleaner/issues/29#issuecomment-670412558,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AB2TJ2SV4UUALLHBEK5CDKLR7O7ANANCNFSM4ALT6VPA
.
@javparra thanks man
@javparra thanks man it works.
@javparra thanks man! saved me from the trouble
@javparra thanks a lot. it worked for me
thanks its work @javparra
It worked!! thank you @javparra
its not work form me
i try git push origin master --force
but still get same error
error: failed to push some refs to 'github.com:zajanah/github-followers.git'
Try this git command
git push origin master --force
or short of force -fgit push origin master -f
this command can delete existing git files ?
I use this command in my organization repository now I am not show any user files only my files and folder shown
Try this git command
git push origin master --force
or short of force -fgit push origin master -f
Thanks it workedd
error occure :+1:
Mohit@Mohit-PC MINGW64 ~/edureka (master)
$ git push SR-with-Kivy master
error: src refspec master does not match any
error: failed to push some refs to 'https://github.com/mohitnamde/SR-with-Kivy.git'
error occure :
Mohit@Mohit-PC MINGW64 ~/edureka (master)
$ git push SR-with-Kivy master --force
error: src refspec master does not match any
error: failed to push some refs to 'https://github.com/mohitnamde/SR-with-Kivy.git'
error occure :
Mohit@Mohit-PC MINGW64 ~/edureka (master)
$ git push SR-with-Kivy master -f
error: src refspec master does not match any
error: failed to push some refs to 'https://github.com/mohitnamde/SR-with-Kivy.git'
it is working but error occure :
Mohit@Mohit-PC MINGW64 ~/edureka (master)
$ git push SR-with-Kivy master --f
error: ambiguous option: f (could be --force-with-lease or --follow-tags)
usage: git push [
-v, --verbose be more verbose
-q, --quiet be more quiet
--repo <repository> repository
--all push all refs
--mirror mirror all refs
-d, --delete delete refs
--tags push tags (can't be used with --all or --mirror)
-n, --dry-run dry run
--porcelain machine-readable output
-f, --force force updates
--force-with-lease[=<refname>:<expect>]
require old value of ref to be at this value
--recurse-submodules (check|on-demand|no)
control recursive pushing of submodules
--thin use thin pack
--receive-pack <receive-pack>
receive pack program
--exec <receive-pack>
receive pack program
-u, --set-upstream set upstream for git pull/status
--progress force progress reporting
--prune prune locally removed refs
--no-verify bypass pre-push hook
--follow-tags push missing but relevant tags
--signed[=(yes|no|if-asked)]
GPG sign the push
--atomic request atomic transaction on remote side
-o, --push-option <server-specific>
option to transmit
-4, --ipv4 use IPv4 addresses only
-6, --ipv6 use IPv6 addresses only
Mohit@Mohit-PC MINGW64 ~/edureka (master)
$ git remote add origin [email protected]:mohitnamde/SR-with-Kivy.git
Mohit@Mohit-PC MINGW64 ~/edureka (master)
$ git push -u origin main
error: src refspec main does not match any
error: failed to push some refs to 'github.com:mohitnamde/SR-with-Kivy.git'
I faced this issue but after 2 days I got a solution. Just run these two commands if you are deploying your site on GitHub pages first time.
git commit -m "initial commit"
git push origin +HEAD
tks bro its work #@javparra
thanks, it worked
@javparra git push origin master -f cmd using
other member code deleted in github .
Try this git command
git push origin master --force
or short of force -fgit push origin master -f
thank you verry much
thank u bro...
it's not working
El mar., 10 nov. 2020 a las 9:50, UmaAddingsmiles (notifications@github.com)
escribió:
[image: 01]
https://user-images.githubusercontent.com/73638354/98676091-25fca600-2381-11eb-8df9-50150b2cc34b.png
I have attached image for the error—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/rtyley/bfg-repo-cleaner/issues/29#issuecomment-724681302,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AB2TJ2TCL67HANS4K35P5FTSPEZHXANCNFSM4ALT6VPA
.
Try this git command
git push origin master --force
or short of force -fgit push origin master -f
It works @javparra
@javparra Thank you its working
If you cloned the repo
git clone url
and have done
git pull
to ensure all the modified files are upto date
after commit
git commit -m "some comment"
just simply run
git push
@JonnyD Thanks ..pull before push again was the issue here :)
error: src refspec master does not match any
error: failed to push some refs to 'https://github.com/AKazadRafi/Personal-Bank.git'
help me
D:\PROJECTS\Personal-Bank>git push -u origin main
error: src refspec main does not match any
error: failed to push some refs to 'https://github.com/AKazadRafi/Personal-Bank.git'
Try this git command
git push origin master --force
or short of force -fgit push origin master -f
It worked. Thanks. @javparra
Try this git command
git push origin master --force
or short of force -fgit push origin master -f
get this error
OpenSSL SSL_connect: Connection was reset in connection to github.com:443
@javparra Thank you
Tnx @javparra
Thanks
Try this git command
git push origin master --force
or short of force -fgit push origin master -f
Thank you so much it really works :)
git push origin master --force
[email protected]: Permission denied (publickey).
fatal: Could not read from remote repository.
this came out still not working
Try this git command
git push origin master --force
or short of force -fgit push origin master -f
Thanks, It works
git push origin main --force
error: src refspec master does not match any
error: failed to push some refs to 'github.com:GuruJustin/OldAndYoungTimer.git'
And I tried with git push origin main --force
But there is still same bug
I have ssh key and also credential has no issue.
Hope someone save my day.
Try this git command
git push origin master --force
or short of force -fgit push origin master -f
Thanks very much it solved my problem
error: src refspec main does not match any
error: failed to push some refs to 'https://github.com/salimkhan1234/monu.git'
Try this git command
git push origin master --force
or short of force -fgit push origin master -f
Thanks a million! It worked!
Por nada bro!!
El mié, 10 feb 2021 a las 18:50, Luiz Alberto Vaz Guimarães Santoro (<
[email protected]>) escribió:
Try this git command
git push origin master --force
or short of force -fgit push origin master -f
Thanks a million! It worked!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/rtyley/bfg-repo-cleaner/issues/29#issuecomment-777054695,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AB2TJ2ULTF7FW4RC7VHVDHDS6L5THANCNFSM4ALT6VPA
.
git push origin master --force
its work for me ....thnx
try this it worked for me.
git push -u origin main
thanks @javparra
Try this git command
git push origin master --force
or short of force -fgit push origin master -f
thanks @javparra
@javparra :sir i received below error:
rror: src refspec main does not match any.
error: failed to push some refs to 'https://github.com/*/Print-and-design.git'
it didnt work @javparra I got the same error
It works man @javparra, Thanks bro.
Most helpful comment
Try this git command
git push origin master --force
or short of force -f
git push origin master -f