LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-04-2016, 02:15 PM   #1
oliveoyl
Member
 
Registered: Sep 2016
Posts: 42

Rep: Reputation: Disabled
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?
 
Old 10-12-2016, 07:08 PM   #2
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,150

Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
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
 
Old 10-12-2016, 07:59 PM   #3
oliveoyl
Member
 
Registered: Sep 2016
Posts: 42

Original Poster
Rep: Reputation: Disabled
how do I update local folder to use git pull?
 
Old 10-13-2016, 05:26 AM   #4
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,150

Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
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/
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Git/GitHub - How can I add a user's commit into local repo? Altiris Linux - Software 3 08-25-2015 01:49 AM
detecting newly created folders/files on local file system aryan1 Programming 5 04-18-2010 03:09 PM
Defining home directory of a newly created user?? ggarrette Linux - Newbie 4 07-01-2008 02:47 PM
Can't access newly created directory DaftDave Linux - Newbie 4 06-27-2008 04:00 PM
Newly created File/directory permissions? redrobin77 Fedora 3 11-14-2005 04:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:46 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration