git commands work in Common
git command:
git init: Initialization
git add:. add all files
git status: check the status of
Ruoguo is the first time you will be prompted to enter your name and E-mail:
git -m "This revised version of some description" commit: to add to his warehouse and remote
git log: View a remote database often has several versions
git reflog: Detailed view
git reset --hard version: Rollback
git checkout: enter the branch
git branch branch name: create a branch
git branch -d branch name: delete branch
git merge merge branches name: Merge branch to take another branch merge your name in the master
git push path branch name: Upload to Git Hub
download:
First cloning:
Download library branch dev have to first clone
git clone path: cloning Git Hub project
git pull path branch name: where to download
Direct download of dev ------------------------------------------
Connect to a remote repository: git remote add origin path
Download dev: git pull origin dev
.gitignore git add file does not detect when a file is detected inside .gitignore
About versions:
git tag -m -a v1.0 'version About' created locally Tag
git Show v1.0 View
git tags -n view local Tag
git Tag the -l 'V1.4.2. *' view local Tag, fuzzy matching
git tag -d v1.0 delete Tag
git the Push Origin: refs / Tags / v0.2 update remote Tag
git Checkout v.10 switch Tag
git FETCH Origin next tag V1.2 to specify the branch in branch store
git push origin --tags designated uploaded version
git pull origin --tags specify the download version
git clone -b v1.0 https://github.com/WuPeiqi/dbhot.git download the specified version
git command:
git init: Initialization
git add:. add all files
git status: check the status of
Ruoguo is the first time you will be prompted to enter your name and E-mail:
git -m "This revised version of some description" commit: to add to his warehouse and remote
git log: View a remote database often has several versions
git reflog: Detailed view
git reset --hard version: Rollback
git checkout: enter the branch
git branch branch name: create a branch
git branch -d branch name: delete branch
git merge merge branches name: Merge branch to take another branch merge your name in the master
git push path branch name: Upload to Git Hub
download:
First cloning:
Download library branch dev have to first clone
git clone path: cloning Git Hub project
git pull path branch name: where to download
Direct download of dev ------------------------------------------
Connect to a remote repository: git remote add origin path
Download dev: git pull origin dev
.gitignore git add file does not detect when a file is detected inside .gitignore
About versions:
git tag -m -a v1.0 'version About' created locally Tag
git Show v1.0 View
git tags -n view local Tag
git Tag the -l 'V1.4.2. *' view local Tag, fuzzy matching
git tag -d v1.0 delete Tag
git the Push Origin: refs / Tags / v0.2 update remote Tag
git Checkout v.10 switch Tag
git FETCH Origin next tag V1.2 to specify the branch in branch store
git push origin --tags designated uploaded version
git pull origin --tags specify the download version
git clone -b v1.0 https://github.com/WuPeiqi/dbhot.git download the specified version