Git server configuration, local clone submission, server acquisition, git Server Configuration

Source: Internet
Author: User
Tags git clone repository

Git server configuration, local clone submission, server acquisition, git Server Configuration

1. install and configure Git on the server

Related Links

Related Links

Note ssh-keygen and modify permissions

Permission: related link

 

2. Local Retrieval

Git clone name @ ip: server project location

Related Links

 

3. Create a local branch and push it to a remote device.

Git branch name

Git push origin name

3.1 server permission configuration (under the git repository directory at the same level)

Chown-R user: suergroup git repository name

 

4. local branch and remote Branch Association

Related Links

Run git branch -- set-upstream; the instance is as follows, where debug is the branch

Git branch -- set-upstream debug origin/debug



5. add commit push commit (version creation)
Git push origin name

6. The server obtains git clone (clone under the srv/www/directory and git clone repository path)
Official Website
Related Links

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.