We often need to write a program version control of our code, or branch management, with similar features of the software, such as Svn,git,cvs and so on! But configure the version control server (SVN server etc.) It is tedious and requires a certain cost! At this point we will consider whether there is a free version control/Branch management service on the network, just need us to submit the code to help us do what the server does, so we can find GitHub, open source China, Coding.net and so on with our needs of the service website! Here I chose the conding.net, as for the advantages and disadvantages here omitted. Free and safe!
The first thing we need to do is install the GIT client on the computer, and the Git tutorial network is a plethora of tutorials! Here's the thing: take idea&&git2.7 for example
1: Create a project on Coding.net to place your project's files
Create the basic options for the project, if you do not want open source can be configured like this
2: The next step is to upload the code.
Open idea, main Menu file-setting-version control-git configure git
Then add the project to the Git repository (which will automatically initialize a repository, do not understand self-Baidu), and then go to the right-click Project folder to open Git bash, using the command "Git remote Add name url" added remote Project address (also known as remote repository) Similar to "Git remote add webapp https://git.coding.net/charlestao/WebApp.git" name corresponds to webapp,url corresponding to https://git.coding.net/ Charlestao/webapp.git
The most important step: you need to update before you can commit with git, and update a bit detours in idea
Look at the picture
Open the Pull interface
See without the remote url! we just added Click the Refresh button on the right, then select WebApp, so you can update the code upload code!!!
Give it a try!
About the use of a little coding.net with git on Androidstudio/idea