标签:
在项目目录下打开Git Bash
git config --global user.name "Tendoasan"
git config --global user.email "tjuywb@gmail.com"
git init
git add AndroidManifest.xml
git add src
git add .
git commit -m "First commit"
touch .gitignore
bin/
gen/
git status
git diff
git diff src/com/example/providertest/MainActivity.java
git checkout src/com/example/providertest/MainActivity.java
git reset HEAD src/com/example/providertest/MainActivity.java
git log
git log 98e88caffd8315287d6dab83b592dd32a7ad8e4d -1
git log 98e88caffd8315287d6dab83b592dd32a7ad8e4d -1 -p
git branch -a
git branch version1.0
git checkout version1.0
git checkout master
git merge version1.0
git clone https://github.com/example/test.git
git push origin master
git fetch origin master
git diff origin/master
git merge origin/master
git pull origin master
标签:
原文地址:http://www.cnblogs.com/tendoasan/p/5229122.html