All Projects → feross → git-pull-or-clone

feross / git-pull-or-clone

Licence: MIT license
Ensure a git repo exists on disk and that it's up-to-date

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to git-pull-or-clone

git-cheatsheet
One stop guide to help solve all your doubts related to Git & GitHub.
Stars: ✭ 31 (-32.61%)
Mutual labels:  clone, pull
peek
1-click from git repo to local editor
Stars: ✭ 22 (-52.17%)
Mutual labels:  clone, pull
Github Clone All
Clone (~1000) repos matched to query on GitHub using Search API
Stars: ✭ 45 (-2.17%)
Mutual labels:  clone, repository
xoai
OAI-PMH Java Toolkit
Stars: ✭ 28 (-39.13%)
Mutual labels:  repository
baserepo
Base repository
Stars: ✭ 71 (+54.35%)
Mutual labels:  repository
cranlike
Manage files in a CRAN-like repository
Stars: ✭ 24 (-47.83%)
Mutual labels:  repository
SQLBuilder.Core
.NET Standard 2.1、.NET 5、.NET 6 版本SQLBuilder,Expression表达式转换为SQL语句,支持SqlServer、MySql、Oracle、Sqlite、PostgreSql;基于Dapper实现了不同数据库对应的数据仓储Repository;
Stars: ✭ 85 (+84.78%)
Mutual labels:  repository
QuerySpecification
Abstract package for building query specifications in your domain model.
Stars: ✭ 18 (-60.87%)
Mutual labels:  repository
docker-debian-repository
A local repository for publishing deb files for use with apt.
Stars: ✭ 49 (+6.52%)
Mutual labels:  repository
react-native-pullview
scrollview&&FlatList Pull refresh and loadmore
Stars: ✭ 26 (-43.48%)
Mutual labels:  pull
laravository
Simplified Repository pattern implementation in Laravel
Stars: ✭ 14 (-69.57%)
Mutual labels:  repository
gsrd
GitHub Starred Repos Downloader
Stars: ✭ 23 (-50%)
Mutual labels:  repository
tinder clone
For learning .
Stars: ✭ 151 (+228.26%)
Mutual labels:  clone
mpc-qt
Media Player Classic Qute Theater
Stars: ✭ 125 (+171.74%)
Mutual labels:  clone
python-tuf
Python reference implementation of The Update Framework (TUF)
Stars: ✭ 1,425 (+2997.83%)
Mutual labels:  repository
meta-git
git plugin for meta
Stars: ✭ 22 (-52.17%)
Mutual labels:  repository
ansible-role-php-versions
Ansible Role - PHP Versions
Stars: ✭ 78 (+69.57%)
Mutual labels:  repository
repo-card
📜 Give your repos some freshness with a Repo Card
Stars: ✭ 36 (-21.74%)
Mutual labels:  repository
copy-anything
An optimised way to copy'ing (cloning) an Object or Array. A small and simple integration
Stars: ✭ 19 (-58.7%)
Mutual labels:  clone
github-interact-cli
🎩 Interact with GItHub right inside your terminal
Stars: ✭ 43 (-6.52%)
Mutual labels:  repository

git-pull-or-clone ci npm downloads

Ensure a git repo exists on disk and that it's up-to-date

Install

npm install git-pull-or-clone

Usage

const gitPullOrClone = require('git-pull-or-clone')

gitPullOrClone('[email protected]:feross/standard.git', '/path/to/destination', (err) => {
  if (err) throw err
  console.log('SUCCESS!')
})

API

gitPullOrClone(url, outPath[, options], callback)

Ensure a git repo exists on disk and that it's up-to-date.

Clones the git repo specified by url to the path outPath. If the repo already exists on disk, then a pull is performed to update the repo instead.

The git repo is shallowly cloned by default. To make a complete clone, set options.depth to Infinity. If the git repo was previously cloned shallowly, it remains shallow.

When the operation is finished, callback is called. The first argument to callback is either null or an Error object if an error occurred.

License

MIT. Copyright (c) Feross Aboukhadijeh.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].