<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Ability to pull a private repository via Git]]></title><description><![CDATA[<p dir="auto">Hello!</p>
<p dir="auto">I'd like to pull a private repository once a day, however, I currently need to retype the credentials every time.  When I try to use git to store the credentials, I get the following error:</p>
<pre><code># git config --global credential.helper cache
error: could not lock config file /root/.gitconfig: Read-only file system
</code></pre>
<p dir="auto">Would it be possible to add a way to do this?</p>
]]></description><link>https://forum.cloudron.io/topic/6676/ability-to-pull-a-private-repository-via-git</link><generator>RSS for Node</generator><lastBuildDate>Sun, 08 Mar 2026 23:32:07 GMT</lastBuildDate><atom:link href="https://forum.cloudron.io/topic/6676.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 20 Mar 2022 17:46:32 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Ability to pull a private repository via Git on Sun, 20 Mar 2022 22:55:43 GMT]]></title><description><![CDATA[<p dir="auto">Also, to automate the pull, put this in the <a href="https://docs.cloudron.io/apps/#cron" target="_blank" rel="noopener noreferrer nofollow ugc">app's cron</a>:</p>
<pre><code>* * * * * echo "==&gt; Pulling" &amp;&amp; cd /app/data/helloworld &amp;&amp; git pull
</code></pre>
<p dir="auto">Then, in the logs, you will see:</p>
<pre><code>Mar 20 15:48:02 ==&gt; Pulling
Mar 20 15:48:02 From https://git.cloudron.space/root/helloworld
Mar 20 15:48:02 8e9fa9a..6a79ead master -&gt; origin/master
Mar 20 15:48:02 Updating 8e9fa9a..6a79ead
Mar 20 15:48:02 Fast-forward
Mar 20 15:48:02 index.php | 3 ++-
Mar 20 15:48:02 1 file changed, 2 insertions(+), 1 deletion(-)
</code></pre>
<p dir="auto">It pulls every minute for testing, so you might want to adjust the cron pattern.</p>
]]></description><link>https://forum.cloudron.io/post/45036</link><guid isPermaLink="true">https://forum.cloudron.io/post/45036</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Sun, 20 Mar 2022 22:55:43 GMT</pubDate></item><item><title><![CDATA[Reply to Ability to pull a private repository via Git on Sun, 20 Mar 2022 22:53:07 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/foksvhox" aria-label="Profile: FoksVHox">@<bdi>FoksVHox</bdi></a> On Cloudron , only the <code>/app/data</code> (persistent, part of app backup), <code>/run</code> (runtime) and <code>/tmp</code> (temporary, auto-cleaned up) directories are writable.</p>
<p dir="auto">So, you have to set the credential path to somewhere in <code>/app/data</code> using <code>git config credential.helper 'store --file=/app/data/git_credentials'</code>. Important: You have to run this command in your git checkout! This is because it saves this info inside <code>.git/config</code>.</p>
<p dir="auto">For example, my repo is <code>helloworld</code>. Then, I cd into it and:</p>
<pre><code>root@89cc2457-9d0a-4752-affb-c918fa4a90db:/app/data/helloworld# git config credential.helper 'store --file=/app/data/git_credentials'

root@89cc2457-9d0a-4752-affb-c918fa4a90db:/app/data/helloworld# git fetch
Username for 'https://git.cloudron.space': root
Password for 'https://root@git.cloudron.space': 

root@89cc2457-9d0a-4752-affb-c918fa4a90db:/app/data/helloworld# git fetch
</code></pre>
<p dir="auto">(the second command above ends up storing it in the file /app/data/git_credentials and the third command does not ask for password anymore).</p>
]]></description><link>https://forum.cloudron.io/post/45035</link><guid isPermaLink="true">https://forum.cloudron.io/post/45035</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Sun, 20 Mar 2022 22:53:07 GMT</pubDate></item></channel></rss>