Local project push to git remote repository

Source: Internet
Author: User
Tags commit
I. Git/gitlab create a new project above


Get the project address: Http://git.mcc.com/mcc/voip-api-test.git two. Push local code to the remote repository

Go to the local project path and push to the remote repository

MINGSHEN@PC32 ~/git $ ls
sms/sms-client/voip-api-test/

MINGSHEN@PC32 ~/git $ cd voip-api-test/

MINGSHEN@PC32 ~/git/voip-api-test $ ls
Pom.xml src/target/

MINGSHEN@PC32 ~/git/voip-api-test $ git init
Initialized empty Git repository in c:/users/mingshen/git/voip-api-test/.git/

Mingshen@pc32 ~/git/voip-api-test (Master) $ git Add.

Mingshen@pc32 ~/git/voip-api-test (Master) $ git commit-m "first commit"
[Master (root-commit) 3303c3d] First com MIT
Files changed, 1298 insertions (+)
Create mode 100644. Gitignore
Create mode 100644 pom.xml
Crea Te mode 100644 Src/main/java/com/mcc/voip/api/voipapiuri.java
Create mode 100644 src/main/java/com/mcc/voip/api/ Voipapiclient.java
Create mode 100644 Src/main/java/com/mcc/voip/testcase/springcontexttestcore.java
Create Mode 100644 Src/main/java/com/mcc/voip/testcase/unittest.java
Create mode 100644 src/main/java/com/mcc/voip/util /abstracthttputil.java
Create mode 100644 Src/main/java/com/mcc/voip/util/basehttputil.java
Create mode 100644 Src/main/java/com/mcc/voip/util/mysqlutils.java
Create mode 100644 src/main/resources/ Application-context.xml
Create mode 100644 src/main/resources/log4j.properties
Create mode 100644 src/main/ Resources/setting.properties
...

Mingshen@pc32 ~/git/voip-api-test (Master) $ git remote add Origin http://git.mcc.com/mcc/voip-test.git

Mingshen@pc32 ~/git/voip-api-test (Master) $ Git push origin master
Username for ' http://git.mcc.com ': xxxxx@qq.com
Counting objects:28, done.
Delta compression using up to 4 threads.
Compressing objects:100% (24/24), done.
Writing objects:100% (28/28), 14.51 KiB | 0 bytes/s, done.
Total (delta 1), reused 0 (Delta 0)
To Http://git.56qq.com/voip/voip-test.git
* [New branch] Master, master

Mingshen@pc32 ~/git/voip-api-test (Master) $

So far. This completes the work of pushing local code to the Git repository.

Related Article

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.