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