{"id":13611823,"url":"https://github.com/logseq/git-auto","last_synced_at":"2025-04-13T05:33:43.486Z","repository":{"id":38784050,"uuid":"341453773","full_name":"logseq/git-auto","owner":"logseq","description":"A Simple Shell Script To Do Git Commit And Push Automatically","archived":true,"fork":false,"pushed_at":"2022-08-17T11:52:55.000Z","size":18,"stargazers_count":179,"open_issues_count":5,"forks_count":46,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-04-10T04:27:59.519Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/logseq.png","metadata":{"files":{"readme":"Readme-CN.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-02-23T06:34:36.000Z","updated_at":"2025-03-17T03:08:13.000Z","dependencies_parsed_at":"2022-09-05T16:40:54.237Z","dependency_job_id":null,"html_url":"https://github.com/logseq/git-auto","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/logseq%2Fgit-auto","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/logseq%2Fgit-auto/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/logseq%2Fgit-auto/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/logseq%2Fgit-auto/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/logseq","download_url":"https://codeload.github.com/logseq/git-auto/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248670514,"owners_count":21142896,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T19:02:11.558Z","updated_at":"2025-04-13T05:33:43.208Z","avatar_url":"https://github.com/logseq.png","language":"Shell","funding_links":[],"categories":["Shell"],"sub_categories":[],"readme":"# git-auto\n\n用于git自动提交和推送的简单命令行脚本\n\n\n## 使用方法\n\n下载`git-auto`文件，并在命令行中输入\n\n```\nchmod +x git-auto\n./git-auto\n```\n\n更多用法:\n\n```\ngit-auto # 将当前脚本所在的文件夹作为git文件夹,只自动本地提交(commit)，不推送(push)到Github.\ngit-auto -d /path/to/your/note's/dir    # 设置目标文件夹\ngit-auto -p                             # 自动提交并推送到Github上\ngit-auto -s origin -p                   # 设置远程服务器地址\ngit-auto -b main -p                     # 设置git的分支\ngit-auto -i 30 -p                       # 设置更新间隔时常\ngit-auto -o -p                          # 只执行一次\n```\n\n## 对Windows用户\n\n在你使用 `git-auto` 脚本之前，请确认本地已安装 Git，否则请从 [该地址](https://github.com/git-for-windows/git/releases/download/v2.30.1.windows.1/Git-2.30.1-64-bit.exe) 下载安装\n\n1. 一路选择\"是\"默认安装,在开始菜单中就可以看到新安装的`Git Bash`图标.\n\n2. 打开`PowerShell`,\n\n如果你还没有下载 Github 上的目标代码仓库，可以在打开的命令行中输入:\n\n```\ngit clone [笔记的 GitHub 仓库地址]\ncd [笔记本地位置]\n```\n\n3. 使用方法\n\n下载 `Start-GitAutoCommit.ps1` 脚本，并在命令行输入\n\n```powershell\n.\\Start-GitAutoCommit.ps1\n```\n\n更多用法：\n\n```powershell\nStart-GitAutoCommit # 将当前脚本所在的文件夹作为git文件夹,只自动本地提交(commit)，不推送(push)到Github.\nStart-GitAutoCommit -d /path/to/your/note's/dir    # 设置目标文件夹\nStart-GitAutoCommit -p                             # 自动提交并推送到Github上\nStart-GitAutoCommit -s origin -p                   # 设置远程服务器地址\nStart-GitAutoCommit -b main -p                     # 设置git的分支\nStart-GitAutoCommit -i 30 -p                       # 设置更新间隔时常\nStart-GitAutoCommit -o -p                          # 只执行一次\n```\n\n## License\n\nCopyright © 2020 Michael Wong\n\nDistributed under the MIT License.\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flogseq%2Fgit-auto","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flogseq%2Fgit-auto","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flogseq%2Fgit-auto/lists"}