First upload to a remote repository from a local project

Source: Internet
Author: User

1, Reason: Recently in rewriting the source of Springboot, transformation to fit the company's architecture.

2. Steps:

(1) Git init

(2) git Add.

(3) Git remote add origin [email protected]****:* **/**.git

(4) Git push--set-upstream origin Master
May have an error:

ERROR:SRC Refspec Master does not match any.
Error:failed to push some refs to ' [email protected]****:* **/**.git '

(5) Git commit-m "initial commit"

Start uploading files.

The following content:

[Master (Root-commit) 6455A15] Initial Commit
195 files changed, 16582 insertions (+)
Create mode 100755. Cfignore
Create mode 100755. gitattributes
Create mode 100755. Mvn/wrapper/maven-wrapper.jar
Create mode 100755. mvn/wrapper/maven-wrapper.properties
Create mode 100755 Code_of_conduct.adoc
Create mode 100755 Contributing.adoc
Create mode 100755 LICENSE.txt
Create mode 100755 Readme.adoc
Create mode 100755 CIRCLE.YML
Create mode 100755 Initializr-actuator/pom.xml
Create mode 100755 initializr-actuator/src/main/resources/meta-inf/spring.factories
Create mode 100755 INITIALIZR-ACTUATOR/SRC/TEST/RESOURCES/APPLICATION-TEST-CUSTOM-STATS.YML

......

......

Slightly...

(6) Git push Origin master

The following content:

Counting objects:277, done.
Delta compression using up to 4 threads.
Compressing objects:100% (248/248), done.
Writing objects:100% (277/277), 645.84 KiB | 9.94 mib/s, done.
Total 277 (Delta), reused 0 (Delta 0)
Remote:resolving deltas:100% (77/77), done.
Remote
Remote: ========================================================================
Remote
Remote: See the [Operating manual] (Https://goo.gl/7sZ11W) If you encounter problems!
Remote
Remote: ========================================================================

......

......

Slightly...

3, complete the above steps basically can be done.

You can see the Gitlab

First upload to a remote repository from a local project

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.