cd foo_project
git init
git add *
git commit -m "My initial commit message"
# On remote machine (Git remote repository)
cd /var/git/
mkdir foo.git
cd foo.git
git --bare init
# On local machine
git remote add origin ssh://agolovatuk@example.com/var/git/foo.git
git push origin master
git checkout origin/master
git branch -f master origin/master
git checkout master
No comments:
Post a Comment