Project upload to GitHub

Source: Internet
Author: User

Register the user to https://github.com/, then point to Start a project, create the warehouse

Remember this address.

Go to https://git-scm.com/downloads. Download git to install locally, (best option to modify path when installing)

For example, I have a project under the C drive called Mydemo, right click on Mydemo, choose "Git Bash here"

1. Git init to build a git repository (there will be more ". Git" hidden directories in this directory)

2. Git Add. Add all the files in the current directory to the index (add+ spaces + dots)

3. Git commit-m "First commit" confirmation plus information

4. Git remote add origin https://github.com/likehc/Test.git associated address

5. Git pull origin Master for conflict prevention

6. Git push-u origin master push

(You'll be asked to enter GitHub's username and password in the process)

The upload succeeds as shown in the movie.

vs how to synchronize with this code?

VS Install gitsccprovider.vsix,pc on install Gitextensions

For example, I want to download the project to the MyProjects directory of E-drive

You can enter E:\MyProjects at the command prompt, and then

git clone https://github.com/likehc/Test.git download to local

PS: Each push, will always have a user name and password, you can enter

git config--global credential.helper store

Will modify the. Gitconfig under the current user, join

[Credential]

Helper = Store

Project upload to GitHub

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.