Coding.net is a code hosting and project management platform, equivalent to foreign GitHub. The use of a period of time, feel very convenient, use up more than GitHub more simple.
git download and installation is not introduced, Baidu, Windows, Mac version of the smooth download down. Here's a quick introduction to some of the command lines that use Git to upload a local project to Coding.net. Scenario One: There are already projects on the coding.net (e.g., you've taken on a new project)
mkdir jiemiwaiter (directory name)--As the parent folder for your code.
CD jiemiwaiter--into this folder
Git init--Initialize Warehouse
git remote add jiemiwaiter https://git.coding.net/hgb0708/.... (HTTPS address of Project warehouse in Coding.net)--Add Warehouse Association
Note: The above jiemiwaiter for the warehouse name, can be customized, the default is Origin
Git pull Jiemiwaiter (warehouse name) master (branch name, if Master Branch is master)--download code to local
Username for ' https://git.coding.net ': ***@163.com (you register coding.net email or your username)
Password for ' https://gui66497@163.com@git.coding.net ': (Here is the password)
Then wait until you succeed. Scenario Two: New projects, just beginning to do
CD jiemiwaiter--into the folder where your project is located
Git init--Initialize Warehouse
echo "# Jiemiwaiter" >> readme.md--creates a new description document with double quotes between the contents
Git add readme.md--Add the description to a staging area for later upload
Git commit-m "First commit"-upload instructions, double quotes inside the main content and changes for this upload, easy to view and rollback.
git remote add jiemiwaiter https://git.coding.net/hgb0708/.... (HTTPS address of Project warehouse in Coding.net)--Add Warehouse Association
Note: The above jiemiwaiter for the warehouse name, can be customized, the default is Origin
Git push-u jiemiwaiter (warehouse name) master (branch name)--Push to Coding.net
Username for ' https://git.coding.net ':
Password for ' https://gui66497@163.com@git.coding.net ':
Scenario Three: Upload after code update
git status--View status
git Add. --Add all change files to the staging area to upload
Git commit then enter
Input I
Write this upload description for easy viewing and management
: wq--Save and exit description
(Note: Under Mac OS system, please use git commit-m "upload instructions" when adding the upload instructions)
git push jiemiwaiter (warehouse name) master--push to Coding.net
Note: git push (warehouse name) Master-f forced push, ignoring conflict
Username for ' https://git.coding.net ':
Password for ' https://gui66497@163.com@git.coding.net ': other command line:
Git remote-v to see if the server warehouse is connected
Git Remote View warehouse name
git remote Add (warehouse name) https://... (Warehouse HTTPS address)
Git remote remove (warehouse name) Remove the warehouse name connection
These are more commonly used, there are many others, if the subsequent discovery of the use of higher frequency of the command to update. Of course, there is also a panacea, is the help document.