On the simple use of git, only a few common instructions, a comprehensive use of Baidu above many
Common directives:
Clone project
git clone http://git.oschina.net/xxxxxx/xxxxxx.git
#更新本地代码
Git pull
#Add
git Add.
#commit
Git Commit-am ""
#提交master分支
Git push Origin Master
#进入指定的本地目录
Cd/d/apps/workspaces/adt/rexdemo
#避免每次都输入username and Password:
Http://www.cnblogs.com/ballwql/p/3462104.html
#使用方法一即可 (pro-Test)
1.1 Create File Store git username and password, also available under Ubuntu
In the%home% directory, the general is C:\users\Administrator, or you can create your own system User name directory, anyway in C:\users\. The file name is. git-credentials because the "." is not allowed to be created directly in window. Start with Git bash, open the Git bash client, make the%home% directory, and then create the file with touch. Git-credentials, edit this file with vim and enter the content format:
Touch. Git-credentials
Vim. Git-credentials
Https://{username}:{password} @github. com
1.2 Adding git Config content
Enter the GIT bash terminal and enter the following command:
git config--global credential.helper store
After the above operation, try to clone a copy of the code from Git, then you need to enter once, when clone is complete, open. Git-credentials, you will find more rows of data, that is, the user name and data, is saved using clear text
Notes-Git uses