Local projects uploaded to GitHub

Source: Internet
Author: User

Before setting up a front-end node on GitHub, the Java code for the MAVEN architecture has been added locally, and the instructions for the local to GitHub project branch have been attempted, and are now recorded

1. Open git Bash

2. Go to the path where the project is located

3. Enter Git init

4. Submit content to the GIT local repository

git add [Files]--the folder name to upload

git commit-m files

5. Create a branch

git checkout-b branch Name

6. Add a remote repository

git remote add origin [email protected]:[github name]/[project name]

7.push to remote Warehouse

Git push-u Origin branch name

8. Refresh the project page on GitHub and you will find one more branch and already have the content submitted above

Local projects uploaded 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.