Git configuration and Common commands, git configuration Common commands
1. Configuration
1) download the git software online. I'm git-1.9.5-preview20150319.exe and TortoiseGit-1.8.14.0-64bit.msi.
After installation, click git bash from the Start Menu
2) Input
Ssh-keygen-C "shixin@yiche.com"-t rsa
To generate a pair of keys, which are saved to ~ by default ~ /. Ssh directory.
3) Input git config -- global user. email shixin@yiche.com
Git config -- global user. name shixin to set account information.
4) then add the public key to the other machine, git clone git@192.168.2.155: android-autoEasy.git to download the server project.
2. Common commands
Git branch-
View All Branches
Git checkout develop
Switch Branch
Git add.
Add the modified file to the git Index
Git status
View modified files
Git commit-a-m "comment"
Submit the modification content to the local branch
Git pull origin develop
Synchronize a server project to a local device
Git push origin develop
Upload locally modified files to the server