A simple configuration, fill in our User name and mailbox
"Preferences" Team "git>configuration
Click Add Entry to enter the value of key and value in the popup box.
Key, name fill in: User.name,value is your name.
E-mail: User.email value: Your email account. When you submit your code, it automatically extracts the information and sends it to the GIT remote repository along with the code.
2. (1) Submit the project to the remote Git repository for the first time. (I use Githob as an example, githob more useful, we can put their own projects are transmitted up, both anytime and anywhere to the code clone down development, can also be used as a network disk)
To Githob, register an account, log in
Click New Repository, enter the project name as required, Project introduction, choose Public,private, to charge. Click Create, it's all right. Name, don't use Chinese oh. Get shown, click HTTP, copy HTTPS, for a moment, submit the project with
(2) Create a project and a local git repository
Open Eclipse, create a project, and then
Sequence: File > Team > Share Project Select Git>next
If you use it for the first time, you'll need to create a local repository first, which is uploaded to the local repository before it can be uploaded to the remote repository. So click Create here.
Tick, click on the items listed below, then click Create Respository below, finally, finish, on
Created a local warehouse
When you're done, you'll see that our project becomes this way, with one more question mark on each.
In the Android project, we do version management, but do not use the Management bin this folder, we have to ignore this folder, the way to ignore the following:
Select the file or folder, right-click, and select Ignore in team.
After doing this, we have one more file in the code for our local warehouse project (. Gitignore)
Files that do not require version management are documented here:
Once this is done, we can submit the code to the local repository:
Use of Eclipse-git