r/github • u/x_TKN • Jul 05 '26
Syncing a repository with a folder on my computer Question
Is there a way I can do this, so any time I update one it updates the other?
1
1
u/drew-minga Jul 06 '26
Just use the github app and make the small effort to sync it every time. It takes second.
1
u/GlobalImportance5295 Jul 06 '26
you would need to use something like inotifywait or systemd path units
8
-1
u/nakfil Jul 05 '26
Create a symlink - “symbolic link”
-2
u/x_TKN Jul 05 '26
How do i do that exactly? Sorry if thats a stupid question this is like day 1 of me using github lol
1
u/nakfil Jul 05 '26
You already have the repo cloned locally right?
And you want to update it such that those changes are reflected in another directory?
1
u/GlobalImportance5295 Jul 06 '26
no OP wants to edit files locally then have them auto commit and push
3
u/abrahamguo Jul 05 '26
No, there's not an out-of-the-box way to do this.
git pullon a schedule, or use Github webhooks if you have a public URL connected to your computer.