Skip to content

Instantly share code, notes, and snippets.

View vvanirudh's full-sized avatar
💭
I may be slow to respond.

Anirudh Vemula vvanirudh

💭
I may be slow to respond.
View GitHub Profile
@vvanirudh
vvanirudh / auto_git_file.md
Created February 6, 2021 17:33 — forked from darencard/auto_git_file.md
Automatic file git commit/push upon change

Automatically push an updated file whenever it is changed

Linux

  1. Make sure inotify-tools is installed (https://github.com/rvoicilas/inotify-tools)
  2. Configure git as usual
  3. Clone the git repository of interest from github and, if necessary, add file you want to monitor
  4. Allow username/password to be cached so you aren't asked everytime
git config credential.helper store
@vvanirudh
vvanirudh / Keeping a fork up to date
Last active February 28, 2018 01:13 — forked from CristinaSolana/gist:1885435
Keeping a fork up to date
### 1. Clone your fork:
git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git
### 2. Add remote from original repository in your forked repository:
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream