在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:anishathalye/git-remote-dropbox开源软件地址:https://github.com/anishathalye/git-remote-dropbox开源编程语言:Python 93.0%开源软件介绍:git-remote-dropboxgit-remote-dropbox is a transparent bidirectional bridge between Git and Dropbox. It lets you use a Dropbox folder or a shared folder as a Git remote! This Git remote helper makes Dropbox act like a true Git remote. It maintains all guarantees that are provided by a traditional Git remote while using Dropbox as a backing store. This means that it works correctly even when there are multiple people operating on the repository at once, making it possible to use a Dropbox shared folder as a Git remote for collaboration. Once the helper is installed, using it is as simple as adding a remote like
To clone repositories in folders or shared folders mounted in your Dropbox, you can run: git clone "dropbox:///path/to/repo" To add a remote to an existing local repository, you can run: git remote add origin "dropbox:///path/to/repo" The repository directory will be created automatically the first time you push. After adding the remote, you can treat it just like a regular Git remote. The Dropbox-backed remote supports all operations that regular remotes support, and it provides identical guarantees in terms of atomicity even when there are concurrent operations, even when using a shared folder. SetupInstall git-remote-dropbox
Log in to DropboxRun SharingThe above gives you a way to create a Git repository on Dropbox and use it from multiple machines that you own. In other words, it's a convenient way to share a remote with your laptop and your desktop. If you want to share with other people, you should explicitly share (e.g. via the Dropbox website) the root folder of the repo with your collaborators. Then they should also install git-remote-dropbox and log in with their own account. Multiple Accountsgit-remote-dropbox supports using multiple Dropbox accounts. You can have named
accounts with You can tell git-remote-dropbox to use a particular account by setting the git
remote URL appropriately, specifying a username like:
Repository ManagerIn addition to the git remote helper, git-remote-dropbox comes with an
additional tool to manage your logins and repositories on Dropbox. This tool
can be invoked as The tool supports the following commands:
Notes
FAQWhy shouldn't I keep my Git repository in Dropbox and let the client sync it? There seem to be a lot of articles on the Internet recommending this as a good workflow. However, this is not a good idea! The desktop client is not aware of how Git manages it's on-disk format, so if there are concurrent changes or delays in syncing, it's possible to have conflicts that result in a corrupted Git repository. This may be uncommon with the way the timing works out in the single user case, but it's still not safe! Why shouldn't I keep a bare Git repository in a Dropbox shared folder, use it as a folder-based Git remote, and sync it with the desktop client? There seem to be some articles on the Internet suggesting that this is a good idea. It's not. Using the desktop client to sync a bare Git repository is not safe. Concurrent changes or delays in syncing can result in a corrupted Git repository. How can I access / recover my repository from Dropbox without using the git-remote-dropbox helper? Because git-remote-dropbox uses an on-disk format that's compatible with Git, accessing your repository without using the helper is easy:
How do I use git-remote-dropbox from behind a proxy server? You can use git-remote-dropbox from behind a proxy server by setting the
DesignTo read about the design of git-remote-dropbox, see DESIGN.md. This could be especially useful if you're thinking about contributing to the project. ContributingDo you have ideas on how to improve git-remote-dropbox? Have a feature request, bug report, or patch? Great! See CONTRIBUTING.md for information on what you can do about that. LicenseCopyright (c) 2015-2022 Anish Athalye. Released under the MIT License. See LICENSE.md for details. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论