Advertisement
mbnoimi

git push issue

Mar 13th, 2014
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.21 KB | None | 0 0
  1. mbnoimi@mbnoimi-pc ~/Desktop/p3 $ git clone '/home/mbnoimi/Desktop/p1'
  2. Cloning into 'p1'...
  3. done.
  4. Checking connectivity... done
  5. mbnoimi@mbnoimi-pc ~/Desktop/p3 $ cd p1/
  6. mbnoimi@mbnoimi-pc ~/Desktop/p3/p1 $ git commit -a -m 'add new line'[master f71dcc1] add new line
  7.  1 file changed, 1 insertion(+)
  8. mbnoimi@mbnoimi-pc ~/Desktop/p3/p1 $ git push origin
  9. warning: push.default is unset; its implicit value is changing in
  10. Git 2.0 from 'matching' to 'simple'. To squelch this message
  11. and maintain the current behavior after the default changes, use:
  12.  
  13.   git config --global push.default matching
  14.  
  15. To squelch this message and adopt the new behavior now, use:
  16.  
  17.   git config --global push.default simple
  18.  
  19. See 'git help config' and search for 'push.default' for further information.
  20. (the 'simple' mode was introduced in Git 1.7.11. Use the similar mode
  21. 'current' instead of 'simple' if you sometimes use older versions of Git)
  22.  
  23. Counting objects: 5, done.
  24. Delta compression using up to 2 threads.
  25. Compressing objects: 100% (2/2), done.
  26. Writing objects: 100% (3/3), 269 bytes | 0 bytes/s, done.
  27. Total 3 (delta 1), reused 0 (delta 0)
  28. remote: error: refusing to update checked out branch: refs/heads/master
  29. remote: error: By default, updating the current branch in a non-bare repository
  30. remote: error: is denied, because it will make the index and work tree inconsistent
  31. remote: error: with what you pushed, and will require 'git reset --hard' to match
  32. remote: error: the work tree to HEAD.
  33. remote: error:
  34. remote: error: You can set 'receive.denyCurrentBranch' configuration variable to
  35. remote: error: 'ignore' or 'warn' in the remote repository to allow pushing into
  36. remote: error: its current branch; however, this is not recommended unless you
  37. remote: error: arranged to update its work tree to match what you pushed in some
  38. remote: error: other way.
  39. remote: error:
  40. remote: error: To squelch this message and still keep the default behaviour, set
  41. remote: error: 'receive.denyCurrentBranch' configuration variable to 'refuse'.
  42. To /home/mbnoimi/Desktop/p1
  43.  ! [remote rejected] master -> master (branch is currently checked out)
  44. error: failed to push some refs to '/home/mbnoimi/Desktop/p1'
  45. mbnoimi@mbnoimi-pc ~/Desktop/p3/p1 $
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement