https://github.com/amirmghanem/github_commits
https://github.com/amirmghanem/github_commits
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/amirmghanem/github_commits
- Owner: AmirMGhanem
- License: mit
- Created: 2022-11-25T12:44:52.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-11-25T19:27:41.000Z (over 2 years ago)
- Last Synced: 2025-02-02T11:11:26.194Z (4 months ago)
- Language: Python
- Size: 15.6 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.MD
Awesome Lists containing this project
README
# github_commiter :) 😁
### using GitPython and Yaml Libraries 🎸## Installation ➕
``` bash
pip install -r requirements.txt
```## usage
* clone the project
* open new repository
* run the following commands at the init step
``` bash
echo "# github_commits" >> README.md
git init
git add README.md
git commit -m "first commit"
git branch -M main
git remote add origin https://github.com//.git
git push -u origin main
```* run the python script [main.py]
## if you want to push manually 😅
### use the command below
``` bash
git commit --date="21 nov 2021" -m "Your commit message"
```### Linux
I will be using `crontab`.1. Open crontab with: `sudo crontab -e`
2. Add the following line: `59 23 * * * cd /path/to/script/folder/ ; /usr/bin/env /usr/local/bin/python3.8 /path/to/script/main.py`
3. Thats it! Make sure you save and exit.Note. There may be git config issues, I solved them by generating a GitHub token in the developer settings. Using the github token as a login for git, make sure git is logged in your system.
Additional information about [crontab](https://crontab.guru)