1.- Create a repository in local folder
git init
git config receive.denyCurrentBranch ignore
git add .
git commit -m "initial"
git branch test
git checkout test

2.- Clone repository in local folder
git clone /home/xx/
git pull

3.- Modify a file in cloned folder
git add .
git commit -m "First change"

4.- Push to the repository
git push origin test