How the local project code into the cloud (gitee) above? Detailed graphics

What are the benefits of git, this is not to repeat them. Many companies are now using git up.

So how will the local code has been placed on some projects cloud (gitee) it?

Preconditions Description:

1: The original location of the project location: D: \ workspace01 \ class as shown below:

2: put the git project folder where the file directory: D: \ workspace01 \ kgautocode

Well, then, we started this project will autocode uploaded to gitee above

One: Create a new project XXXX (project name) code on the cloud

After landing cloud code, the new

After New:

When new, this is not autocode.

Two: to create a local folder D: / XXXX, and then use git bash

Three: cd to a local folder D: / XXXX // If the file is created in the git bash you can skip this step

4: Use git init command // initialize a local git repository at this time will create a local .git folder

Git init after executing the command, the second (third) step folder, see the following:

Five: Use git remote add origin https://gitee.com/ your code cloud username / XXXX // add a remote repository

Six: Use git pull origin master command, the warehouse pull on the cloud code to a local folder

Gitee need to enter the account number and password above period.

After entering the account number, enter the password in the pop-up. As shown below:

Have entered the password. Click ok. As shown below:

Seven: the files to upload, add to the file you just created folder

Eight: Use git add (to represent all.) Or git add + filename // Save the file to the cache.

Nine: Use -m 'file newly added content description' commit git // add file description

Ten: Use git push origin master, will be pushed to the remote repository local repository

After executing ask git push, push in gitee we will be able to see up project. As shown below:

Guess you like

Origin www.cnblogs.com/wjx6270/p/12084305.html