do not upload files from the client to the local server

by Alberto Suárez Pérez   Last Updated May 16, 2018 14:00 PM

I have a virtual machine with ubuntu and git from the client send push but the files are not created on the server.

On the other hand if I do not use on the server: git config receive.denyCurrentBranch ignore

It does not let me do push.

some idea, thank you very much


[email protected]:/var/www/html/email# git init
Initialized empty Git repository in /var/www/html/email/.git/
[email protected]:/var/www/html/email# git add .
[email protected]:/var/www/html/email# git status
En la rama master

Commit inicial

Cambios para hacer commit:
  (use <<git rm --cached <archivo>...>> para sacar del stage)

    nuevo archivo: ._email.class.php
    nuevo archivo: correos.txt
    nuevo archivo: email.class.php
    nuevo archivo: lib/class.phpDataClass.php
    nuevo archivo: lib/class.phpmailer.php
    nuevo archivo: lib/class.pop3.php
    nuevo archivo: lib/class.smtp.php

[email protected]:/var/www/html/email# git commit -m "first commit"
[master (root-commit) a86c2c9] first commit
 7 files changed, 4389 insertions(+)
 create mode 100755 ._email.class.php
 create mode 100755 correos.txt
 create mode 100755 email.class.php
 create mode 100755 lib/class.phpDataClass.php
 create mode 100755 lib/class.phpmailer.php
 create mode 100755 lib/class.pop3.php
 create mode 100755 lib/class.smtp.php
[email protected]:/var/www/html/email# git remote add origin ssh://[email protected]/home/alberto/git/email
[email protected]:/var/www/html/email# git push -u origin master
[email protected]'s password: 
Counting objects: 10, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (10/10), done.
Writing objects: 100% (10/10), 34.20 KiB | 0 bytes/s, done.
Total 10 (delta 0), reused 0 (delta 0)
To ssh://[email protected]/home/alberto/git/email
 * [new branch]      master -> master
Branch master set up to track remote branch master from origin.
[email protected]:/var/www/html/email# git status
En la rama master
Su rama est? actualizada con <<origin/master>>.
nothing to commit, working directory clean
[email protected]:/var/www/html/email# 


$ git init
Initialized empty Git repository in /home/alberto/git/email/.git/
$ git config receive.denyCurrentBranch ignore
$ ls
$ ls -a
.  ..  .git
Tags : linux git

Related Questions

Openning above 1MLN connections stucks at 469K

Updated December 21, 2016 08:00 AM

Per-packet multipath routing and bridging

Updated April 25, 2017 09:00 AM