Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to build a private Git warehouse on Dropbox

2025-03-09 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article introduces the knowledge of "how to build a private Git warehouse on Dropbox". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

Train of thought

Our idea is to set up the Git repository in the directory of the Dropbox client, and then we clone the warehouse to the local warehouse, and then we submit the operation. After completing the submission, we perform the push operation, then the local data will be push to the repository of the Dropbox client directory, and then the Dropbox client will synchronize the changes of the warehouse files to the Dropbox server.

Realize

For example, we want to create a demo.git project under the Dropbox/project/ directory:

Create a remote repository folder (.git suffix) under the Dropbox folder

The code is as follows:

Cd ~ / Dropbox/project

Mkdir demo.git

Enter the demo.git folder and initialize repository

The code is as follows:

Cd demo.git

Git init-bare

3. After the creation, now create a local clone. If you want to create it, go to the ~ / lab/demo/ directory.

The code is as follows:

Cd ~ / lab/

Git clone ~ / Dropbox/project/demo.git demo

4. Test git

The code is as follows:

Cd demo

Touch README

Git add README

Git commit-m "fisrt commit"

Git push origin master

Fifth, share / Dropbox/project/demo.git folder, other designated users after synchronization, the local clone git project.

This is the end of the content of "how to build a private Git warehouse on Dropbox". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report