Issue on pushing Github code to Bitbucket
When I am trying to push my existing repository from github to bitbucket, I get this:-
# git push Counting objects: 1025, done. Delta compression using up to 2 threads. Compressing objects: 100% (661/661), done. Writing objects: 100% (1025/1025), 2.02 MiB, done. Total 1025 (delta 302), reused 909 (delta 227) error: Could not read d97e763d22304ebfa5a1fb7ba9468cb36d4eff49 fatal: Failed to traverse parents of commit 57211de122c9b449c2b4bb0d37ac6a73545a9c68 error: Could not read d97e763d22304ebfa5a1fb7ba9468cb36d4eff49 fatal: Failed to traverse parents of commit 57211de122c9b449c2b4bb0d37ac6a73545a9c68 To ssh://git@bitbucket.org/techvineet/task-manager.git ! [remote rejected] master -> master (missing necessary objects) error: failed to push some refs to 'ssh://git@bitbucket.org/techvineet/test-site.git'
What I m doing wrong?
You can do the following things:
C:xampphtdocs<project>.git
where .git
is a hidden folder. config
file available there, it must contains the code similar to this [core] repositoryformatversion = 0 filemode = false bare = false logallrefupdates = true symlinks = false ignorecase = true hideDotFiles = dotGitOnly`` [remote "origin"] url = ssh://git@bitbucket.org/techvineet/test-site.git fetch = +refs/heads/*:refs/remotes/origin/* [branch "master"] remote = origin merge = refs/heads/master
ssh://git@bitbucket.org/techvineet/test-site.git
with https://<your_username>@bitbucket.org/techvineet/test-site.git
https://techvineet:techvineet123@bitbucket.org/techvineet/test-site.git
where techvineet should be your username and techvineet123 should be the password for the same. git status
if any untracked files are remaining to add use git add *
to add then use git commit -a -m 'Your Message'
to commit your files, remember never push before pulling the stuffs. There you can use git pull
and then use git push
Cheers!
链接地址: http://www.djcxy.com/p/23176.html上一篇: 大文件没有从提交中删除