Mac layout git repository server

Source: Internet
Author: User

Create an administrator account for example: Git

Sign in with a git account

Open a remote login for your git account

Create a warehouse folder

sudo git--bare init

Change the configuration file

Cd/users/username/projects

sudo vim. git/config

Vim Operation Tutorial

After entering vim, if you have not pressed any other keys on the keyboard. You can press Shift+g on your keyboard first, and you'll move the cursor to the last line of text. )

Click the O key; (insert a row below the current line and enter the input mode)

~, add

[Receive]
Denycurrentbranch = Ignore

Change directory permissions for a warehouse folder

Cd.. && sudo chmod-r 777 projects

Connecting to a server

git clone [email protected]:testgit test

Mac layout git repository 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.