Skip to content

hwakabh/gists

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gists

Collections of code snippets in GitHub Gist with git-subomodule.

Sync manually

To automatically sync changes of submodules in Gist, the following operation will be required when we change snippets in Gist for manually applying changes into this repository.

# Fetch latest changes from Gists side into this repository
% git submodule update --remote

% git add .
% git commit -m "chore: updated submodules"
% git push

Note that these operations requires to clone this repo recursively, whereas by default git clone does not do this.

% git clone --recursive [email protected]:hwakabh/gists.git
% git fetch --all --prune --recurse-submodules=yes

Configurations

As we are using GitHub Actions to sync contents autocatically between this repo and Gists, which is mentioned above, the token is required for it.
For the token to push changes to this repo for sync, the following permission would be required:

User permissions:

  • gist: Read and Write

Repository permissions:

  • metadata: Read
  • contents: Read and Write

Please see more details in official document for generating tokens on GitHub.

About

Collections of code snippets in GitHub Gist with git-subomodule.

Topics

Resources

Code of conduct

Stars

Watchers

Forks

Contributors 3

  •  
  •  
  •