Guest User

Untitled

a guest
Aug 17th, 2017
430
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.82 KB | None | 0 0
  1. cyril@zarquon:~$ rm -rf ltupkgs/
  2. cyril@zarquon:~$ git clone ssh://[email protected]/data/git/ltupkgs.git
  3. Cloning into ltupkgs...
  4. Enter passphrase for key '/home/cyril/.ssh/id_dsa':
  5. warning: You appear to have cloned an empty repository.
  6. cyril@zarquon:~$ cd ltupkgs/
  7. cyril@zarquon:~/ltupkgs$ date > readme
  8. cyril@zarquon:~/ltupkgs$ git add readme
  9. cyril@zarquon:~/ltupkgs$ git commit -a
  10. [master (root-commit) e7d54dc] date
  11. 1 files changed, 1 insertions(+), 0 deletions(-)
  12. create mode 100644 readme
  13. cyril@zarquon:~/ltupkgs$ git push origin master
  14. Enter passphrase for key '/home/cyril/.ssh/id_dsa':
  15. Counting objects: 3, done.
  16. Writing objects: 100% (3/3), 250 bytes, done.
  17. Total 3 (delta 0), reused 0 (delta 0)
  18. remote: error: refusing to update checked out branch: refs/heads/master
  19. remote: error: By default, updating the current branch in a non-bare repository
  20. remote: error: is denied, because it will make the index and work tree inconsistent
  21. remote: error: with what you pushed, and will require 'git reset --hard' to match
  22. remote: error: the work tree to HEAD.
  23. remote: error:
  24. remote: error: You can set 'receive.denyCurrentBranch' configuration variable to
  25. remote: error: 'ignore' or 'warn' in the remote repository to allow pushing into
  26. remote: error: its current branch; however, this is not recommended unless you
  27. remote: error: arranged to update its work tree to match what you pushed in some
  28. remote: error: other way.
  29. remote: error:
  30. remote: error: To squelch this message and still keep the default behaviour, set
  31. remote: error: 'receive.denyCurrentBranch' configuration variable to 'refuse'.
  32. To ssh://[email protected]/data/git/ltupkgs.git
  33. ! [remote rejected] master -> master (branch is currently checked out)
  34. error: failed to push some refs to 'ssh://[email protected]/data/git/ltupkgs.git'
Advertisement
Add Comment
Please, Sign In to add comment