GithubHelp home page GithubHelp logo

doytsujin / git-auto Goto Github PK

View Code? Open in Web Editor NEW

This project forked from logseq/git-auto

0.0 1.0 0.0 16 KB

A Simple Shell Script To Do Git Commit And Push Automatically

Shell 54.37% PowerShell 45.63%

git-auto's Introduction

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.

git-auto's People

Contributors

defclass avatar zhanghanduo avatar tallguyjenks avatar batkiz avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.