Advertisement
Guest User

Untitled

a guest
Nov 2nd, 2015
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.04 KB | None | 0 0
  1. On server:
  2. [git@alarmpi ~]$ git init --bare myrepo.git
  3. Initialized empty Git repository in /home/git/myrepo.git/
  4.  
  5. On client:
  6. jatech@Webcruncher /var/www $ git clone 192.168.0.99:myrepo.git
  7. Cloning into 'myrepo'...
  8. Arch Linux \r (\l)
  9.  
  10. warning: You appear to have cloned an empty repository.
  11. Checking connectivity... done.
  12. jatech@Webcruncher /var/www $ cd myrepo/
  13. jatech@Webcruncher /var/www/myrepo $ ls -la
  14. total 12
  15. drwxr-xr-x 3 jatech jatech 4096 Nov 2 13:08 .
  16. drwxr-xr-x 10 jatech www-data 4096 Nov 2 13:08 ..
  17. drwxr-xr-x 7 jatech jatech 4096 Nov 2 13:08 .git
  18. jatech@Webcruncher /var/www/myrepo $ touch addfile
  19. jatech@Webcruncher /var/www/myrepo $ git add -A
  20. jatech@Webcruncher /var/www/myrepo $ git commit -a -m "Added an file"
  21. [master (root-commit) 7244388] Added an file
  22. 1 file changed, 0 insertions(+), 0 deletions(-)
  23. create mode 100644 addfile
  24. jatech@Webcruncher /var/www/myrepo $ git pull
  25. Arch Linux \r (\l)
  26.  
  27. Your configuration specifies to merge with the ref 'master'
  28. from the remote, but no such ref was fetched.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement