Git tutorial #1

Initialise the repository on the remote server:

mkdir test/project1
cd test/project1
git init --bare

On the local host:

cd somedir/project1
git init
echo some text > somefile.txt
git add somefile.txt
git commit -s -m "my very 1st commit"
git remote add origin
git push -u origin master

Clone the project on another host:

git clone
cd project1

Based on

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.