First commit:
on local laptop:
mkdir example
cd example
git init
touch README
git add README
git commit -m 'first commit'
git remote add origin ssh://git@gate.example.org:22111/~/example.git
git push origin master
When programming:
# we need to clone the repository for one time:
git clone ssh://git@gate.example.org:22111/~/example.git
# ====
# then every time we want to edit some files:
cd example
git pull # pull the newest version from the repository
# after changing some files:
git commit -a -m 'msg' # commit the changes with a message msg
git push # push the changes to the repository
ไม่มีความคิดเห็น:
แสดงความคิดเห็น