LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   linking local directory to use newly created github repo (https://www.linuxquestions.org/questions/linux-general-1/linking-local-directory-to-use-newly-created-github-repo-4175590760/)

oliveoyl 10-04-2016 02:15 PM

linking local directory to use newly created github repo
 
I created a new private repo on github.blah.com. This repo has a few config flat files. Now I want to link /usr/local/somedir to my private repo so that when I run a git pull all the config files will sync up to that dir.

What do I have to do on the local machines to get this setup?

Keith Hedger 10-12-2016 07:08 PM

you need to use git clone to clone the remote repo in the first place then when you need to update your local folder you use git pull

oliveoyl 10-12-2016 07:59 PM

how do I update local folder to use git pull?

Keith Hedger 10-13-2016 05:26 AM

Code:

cd /some/folder

git clone https://github.com/KeithDHedger/KKEdit.git

...
Do something to remote repo
...

git pull

Code:

man git
https://guides.github.com/activities/hello-world/


All times are GMT -5. The time now is 12:16 AM.