[Git使用] git Command line instructions

Git global setup

git config --global user.name "Administrator"
git config --global user.email "[email protected]"

Create a new repository

git clone http://192.168.1.222/android/ibeacon_test.git
cd ibeacon_test
touch README.md
git add README.md
git commit -m "add README"
git push -u origin master

Existing folder or Git repository

cd existing_folder
git init
git remote add origin http://192.168.1.222/android/ibeacon_test.git
git add .
git commit
git push -u origin master

你可能感兴趣的:([Git使用] git Command line instructions)