Upload the Git project to the LIUNX server

Source: Internet
Author: User
First, go to the LIUNX server and create a git repository.

1. Shell command: Git init--bare sample.git Note that the name of the repository should be appended with the. git suffix

Second, initialize the local project
GIT init//Initialize local repository
git add *//or add files that need to be submitted
Git commit-m "init project"//submit to local repository
git remote add origin [email protected] Server IP:LIUNX server path/sample.git//and Remote Warehouse Project Association
Git push-u origin master//submit to remote repository

Third, pull the GIT project code on the server
1. git clone [email protected] Server Ip:liunx server path/sample.git

Upload the Git project to the LIUNX server

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.