Need help to resolve this as I've been working on this since Friday.
So when I'm trying to push my changes, I get this error.
git -c diff.mnemonicprefix=false -c core.quotepath=false push -v --tags origin master:master
Pushing to ssh://<username>/projects/ssm/ssmportal
remote: error: insufficient permission for adding an object to repository database ./objects
remote: fatal: failed to write object
error: remote unpack failed: unpack-objects abnormal exit
To ssh://mantis-oil.microlink.com.my/projects/ssm/ssmportal
= [up to date] Deployment -> Deployment
! [remote rejected] master -> master (unpacker error)
error: failed to push some refs to 'ssh://<username>/projects/ssm/ssmportal'
I tried most of what is mentioned in Google but it still does not work. What I do is to remove everything and download everything which is very tiring for me.
Can you please help me with this?
UPDATE
I tried the one which Chip suggested, but it still did not work. Below is the result.
From this SO Answer:
First do git pull --rebase and
then try git push
Hope you can find more information in the link provided.
Related
I get this error when I am trying to push changes up to github:
ssh: Could not resolve hostname github.com: Temporary failure in name resolution
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
I used to be able to push on this repo, but for some reason its giving me this error now.
When I run git remote -v it gives me this
origin git#github.com:WilliamLi10/UnigraderBackendCode.git (fetch)
origin git#github.com:WilliamLi10/UnigraderBackendCode.git (push)
I am trying to push changes up from my local repo to github, but it gives me this error.
Project owner (michael365) maintain a repository and has provided developer access to me. I am trying to push the code but I am getting this error
remote: GitLab: API is not accessible
To gitlab.com:michael365/bim.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'git#gitlab.com:michael365/bim.git'
although I have set the public key in the SSH section, it still it doesn't work. I am issuing the following commands
$ git add .
$ git commit -m "Adding Initial Code"
On branch master
nothing to commit, working tree clean
$ git push
fatal: The current branch master has no upstream branch.
To push the current branch and set the remote as upstream, use
git push --set-upstream origin master
$ git push --set-upstream origin master
Counting objects: 3, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (2/2), done.
Writing objects: 100% (3/3), 868 bytes | 868.00 KiB/s, done.
Total 3 (delta 0), reused 0 (delta 0)
remote: GitLab: API is not accessible
To gitlab.com:michael365/bim.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'git#gitlab.com:michael365/bim.git'
Any suggestions would be helpful
pre-receive hook declined indicates that your push was rejected by remote repository after a content check on the changes you are pushing failed.
Ask the admin of remote repo as in what check is rejecting your push. Usually you get a proper error with message stating what check failed.
I've cloned github repository with SourceTree.
During installing SourceTree I've authentificated with my GutHub account.
After cloning I've made first changes and trying to commit and push. Commit works fine, but push throws exception:
git -c diff.mnemonicprefix=false -c core.quotepath=false push -v --tags --set-upstream origin master:master
remote: Permission to KamikyIT/VkWCF.git denied to sergeypyrkin.
fatal: unable to access 'https://github.com/KamikyIT/VkWCF.git/': The requested URL returned error: 403
Pushing to https://github.com/KamikyIT/VkWCF.git
What I can see is that I am not sergeypyrkin.
Check in command-line your credential helper:
git config credential.helper
Depending on your OS, that helper might have cached the wrong credentials (wrong username/password) associated to github.com
Here's a screenshot of what I'm dealing with:
I'm a new GitBash user and am getting this error when trying to push to GitHub.
I was following this tutorial. So far I've not run into any problems, except I get this error when I try to push:
Fatal: master cannot be resolved to branch
Things I've done correctly:
I am signed in
I have specified my name and email using git config -global... *blah blah*
Everything is committed and should be ready to push
I'm on the master branch that I wish to push.
I've added my remote repository using command git remote add origin https://github.com/Tawnwen/MyApp.git.
I tried to push using the command git push -u origin master
Can anyone please help?
I messed my repository while trying to resolve conflicts. Everything was quite OK (I'm getting familiar with Git) but things got bad when I tried to reset the current branch to a previous commit (not knowing exactly what I was doing, I admit). In SourceTree, I now have 2 commits to Pull from GitHub and 10 commits to Push. When I tried to Pull, I got this:
git -c diff.mnemonicprefix=false -c core.quotepath=false fetch origin
git -c diff.mnemonicprefix=false -c core.quotepath=false pull --no-commit origin master
From https://github.com/JnLlnd/CSVBuddy
* branch master -> FETCH_HEAD
error: The following untracked working tree files would be overwritten by merge:
TEST-TheBeatles-Tab (1).txt
TEST-TheBeatles-Tab-EXPORT (1).txt
TEST-TheBeatles-Tab-EXPORT.txt
html-doc/img/review2_5_CSV Buddy_award.png
icon/csvbuddy-16x16.png
icon/csvbuddy-32x32.png
Please move or remove them before you can merge.
Aborting
I moved the 6 files and tried to Pull again. It seems to work (no error message). However, I still have the indication that there are 2 Pull to do.
If I try to Push the 10 commits, I get this error message:
git -c diff.mnemonicprefix=false -c core.quotepath=false push -v --tags origin master:master
Pushing to https://github.com/JnLlnd/CSVBuddy
To https://github.com/JnLlnd/CSVBuddy
! [rejected] master -> master (non-fast-forward)
error: failed to push some refs to 'https://github.com/JnLlnd/CSVBuddy'
hint: Updates were rejected because the tip of your current branch is behind
hint: its remote counterpart. Merge the remote changes (e.g. 'git pull')
hint: before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
Hum... I think I'm not that familiar with Git ;-) What should I do?
OK. Think I got it. I still had 2 conflicts to resolve before I can Pull / Push as desired.
Thanks for reading.