• This repository has been archived on 16/Nov/2022
  • Stars
    star
    181
  • Rank 212,110 (Top 5 %)
  • Language
    Shell
  • Created over 3 years ago
  • Updated over 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A Simple Shell Script To Do Git Commit And Push Automatically

git-auto

A Simple Shell Script To Commit And Push Automatically

中文文档

Usage

Download the git-auto file

chmod +x git-auto
./git-auto

More samples:

git-auto # use current script dir as git dir, and auto commit, not push.
git-auto -d /path/to/your/note's/dir   # set git dir
git-auto -p # auto commit and push
git-auto -s origin -p # set remote server
git-auto -b main -p # set git branch
git-auto -i 30 -p # set interval seconds
git-auto -o -p # execute once

For Windows Users

Before you proceed to use the git-auto file, please make sure Git installed, otherwise please download Git and install it.

  1. Just click 'yes' all the way down and you will find Git Bash icon in the start.

  2. Open PowerShell

Download the target repository if you don't have it locally yet:

git clone [your_repo_url]
cd [your_repo_location]

For those who don't yet have a repository on Github, please refer to https://docs.github.com/en/github/getting-started-with-github/create-a-repo.

  1. Usage

Download the Start-GitAutoCommit.ps1 file, and run

.\Start-GitAutoCommit.ps1

More samples:

Start-GitAutoCommit # use current script dir as git dir, and auto commit, not push.
Start-GitAutoCommit -d /path/to/your/note's/dir   # set git dir
Start-GitAutoCommit -p # auto commit and push
Start-GitAutoCommit -s origin -p # set remote server
Start-GitAutoCommit -b main -p # set git branch
Start-GitAutoCommit -i 30 -p # set interval seconds
Start-GitAutoCommit -o -p # execute once

Contributors

Thanks for your work!

PowerShell Port, by @batkiz

Readme-CN.md & Git Bash docs, by @zhanghanduo

License

Copyright © 2020 Michael Wong

Distributed under the MIT License.

More Repositories

1

logseq

A privacy-first, open-source platform for knowledge management and collaboration. Download link: http://github.com/logseq/logseq/releases. roadmap: http://trello.com/b/8txSM12G/roadmap
Clojure
32,717
star
2

awesome-logseq

Awesome Logseq resources created by the community <3
2,260
star
3

logseq-plugin-samples

Logseq plugin samples for beginner 🌱
CSS
308
star
4

marketplace

A centralized packages manager for Logseq marketplace plugins.
JavaScript
253
star
5

mldoc

Another Emacs Org-mode and Markdown parser.
OCaml
239
star
6

publish-spa

A github action and CLI to publish logseq graphs as a SPA app
Clojure
217
star
7

nbb-logseq

nbb with features enabled for logseq
Clojure
140
star
8

publish

JavaScript
130
star
9

docs

Logseq documentation
Clojure
127
star
10

graph-validator

Validate your logseq graphs
Clojure
48
star
11

awesome-logseq-cn

31
star
12

rdf-export

Export a logseq graph to RDF
Clojure
29
star
13

plugins

Documentation site of Logseq plugins
HTML
19
star
14

deprecated-github-backend

Clojure
18
star
15

bb-tasks

Reusable babashka tasks used by logseq team
Clojure
17
star
16

rsapi

Logseq's rsapi: Encryption, Sync.
Rust
16
star
17

sqlite-db

SQLite integration via WASM
C
12
star
18

sites

Logseq home page
CSS
11
star
19

logseq-cn

Logseq 中文资料库
8
star
20

handbooks

Handbooks resources for Logseq.
Clojure
5
star
21

capacitor-file-sync

Logseq Sync capacitor plugin for iOS and Android
Swift
5
star
22

datahike-rs

Experimental datahike native binding
JavaScript
5
star
23

logseq-extension-example

An example Logseq extension that showcases Logseq's API
JavaScript
3
star
24

Ranker

Ranker is the home for prioritizing and tracking issues and feature requests. We pull in tickets from GitHub and discussions from Discourse, and use algorithm to rank requests so the most important features get built first.
Python
3
star
25

AgeEncryption

Age Encryption
Rust
2
star
26

logseq.github.io

https://docs.logseq.com
HTML
2
star