<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Webmaster-Source &#187; Git</title>
	<atom:link href="https://www.webmaster-source.com/tag/git/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.webmaster-source.com</link>
	<description>Useful Resources For Webmasters</description>
	<lastBuildDate>Thu, 24 Aug 2017 02:01:18 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.1.42</generator>
	<item>
		<title>Deploy GitHub Repositories with GoHub</title>
		<link>https://www.webmaster-source.com/2013/09/04/deploy-github-repositories-with-gohub/</link>
		<comments>https://www.webmaster-source.com/2013/09/04/deploy-github-repositories-with-gohub/#comments</comments>
		<pubDate>Wed, 04 Sep 2013 11:42:19 +0000</pubDate>
		<dc:creator><![CDATA[Matt]]></dc:creator>
				<category><![CDATA[Hosting]]></category>
		<category><![CDATA[deployment]]></category>
		<category><![CDATA[Git]]></category>
		<category><![CDATA[Golang]]></category>
		<category><![CDATA[servers]]></category>

		<guid isPermaLink="false">http://www.webmaster-source.com/?p=5174</guid>
		<description><![CDATA[One popular way to deploy a web application, or even a set of static HTML files in the case of Jekyll blogs, is to add a bare repository on your server with a post-receive hook that catches the files when they&#8217;re pushed and copies them into the right place. But that&#8217;s a little inconvenient. To [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>One popular way to deploy a web application, or even a set of static HTML files in the case of <a href="http://jekyllrb.com/">Jekyll</a> blogs, is to add a bare repository on your server with a post-receive hook that catches the files when they&#8217;re pushed and copies them into the right place. But that&#8217;s a little inconvenient. To deploy you have to grab your computer, pull down the latest changes and then push to your second remote. What if you want to do it from your phone, reviewing pull requests and merging them on the go? What if you want to edit your Jekyll blog&#8217;s repository on <a href="http://prose.io/">Prose</a> and have the changes immediately take effect?</p>
<p>That&#8217;s the problem <a href="https://github.com/redwallhp/gohub">GoHub</a> attempts to solve. It&#8217;s a tiny webserver (written in the Go language) that listens on a port for messages from GitHub&#8217;s WebHook API. Any time a commit is pushed to GitHub, they send a JSON notification to your GoHub listener, and it runs the shell script of your choice when the specified branch (usually &#8220;master&#8221;) changes.</p>
<p>The original GoHub script was <a href="https://github.com/adeven/gohub">created by adevan</a>, but I made <a href="https://github.com/redwallhp/gohub">my own fork</a> that includes some extra goodies. It includes a magical setup script that sets everything up for you, as well as an Upstart script. (Configurations and logs are also under <code>/etc/gohub</code> in the fork.) So if your Linux distro is still using SystemV instead of <a href="http://en.wikipedia.org/wiki/Upstart">Upstart</a>, you probably want to use the original instead of the fork. (At least until I get around to writing a SystemV script and amending the setup&#8230;) If you&#8217;re on Ubuntu, you&#8217;re good.</p>
<p>Assuming you already have <a href="http://golang.org/">Go</a> installed, it&#8217;s a simple matter of cloning the repository and running the setup script.<span id="more-5174"></span></p>
<pre class="brush: bash; title: ; notranslate">
git clone https://github.com/redwallhp/gohub.git
cd gohub
chmod +x ./setup
sudo ./setup
</pre>
<p>Then you need to add your watched repositories to <code>/etc/gohub/config.json</code>. Each object should specify the repository name (in the form of <code>gohub</code> not <code>redwallhp/gohub</code>), the branch (<code>master</code> in most cases) and the path to the shell script that should be run. The best place to keep them is in <code>/etc/gohub/scripts</code>, to keep everything together and save your sanity in the future.</p>
<p>What should one of those scripts look like? Here&#8217;s a super simple example that just takes the files checked out and copies them to the public directory the web server is looking in. This works well for PHP projects.</p>
<pre class="brush: bash; title: ; notranslate">
#!/bin/bash -l

GIT_REPO=https://github.com/me/awesomeapp.git
TMP_GIT_CLONE=~/tmp/git/awesomeapp
PUBLIC_WWW=/var/www/sites/awesomeapp

git clone $GIT_REPO $TMP_GIT_CLONE
cp $TMP_GIT_CLONE $PUBLIC_WWW
rm -rf $TMP_GIT_CLONE
exit
</pre>
<p>The README file has <a href="https://github.com/redwallhp/gohub#example-deployment-script">the script I use</a> to build and deploy Jekyll sites.</p>
<p>Once you have everything set up to your liking, start the server by running <code>service gohub start</code>. This invokes the Upstart script and starts the server daemon.</p>
<p>Now all that&#8217;s left to do is add the WebHook on GitHub. Go into the settings for the repository, select Service Hooks, and then WebHook URLS. Paste in the appropriate URL, which follows this convention:</p>
<pre class="brush: plain; title: ; notranslate">http://example.org:8392/reponame_branch</pre>
<p>So if your repository URL is <code>https://github.com/me/awesomeapp.git</code>, and your domain is <code>example.org</code>, your WebHook URL would be <code>http://example.org:8392/awesomeapp_master</code>.</p>
<p>Save the settings on GitHub, and test out your new Git deployment system. If you make a change and push the commit, the changes should take effect momentarily.</p>
]]></content:encoded>
			<wfw:commentRss>https://www.webmaster-source.com/2013/09/04/deploy-github-repositories-with-gohub/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>GitList: View Your Git Repositories on the Web</title>
		<link>https://www.webmaster-source.com/2012/08/14/gitlist-view-your-git-repositories-on-the-web/</link>
		<comments>https://www.webmaster-source.com/2012/08/14/gitlist-view-your-git-repositories-on-the-web/#comments</comments>
		<pubDate>Tue, 14 Aug 2012 11:03:59 +0000</pubDate>
		<dc:creator><![CDATA[Matt]]></dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Git]]></category>
		<category><![CDATA[GitHub]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[version control]]></category>

		<guid isPermaLink="false">http://www.webmaster-source.com/?p=4776</guid>
		<description><![CDATA[Wouldn&#8217;t it be cool if you could host your own private GitHub, for browsing your local repositories or remote ones you host on your own server? Well, there&#8217;s a new PHP application in town that lets you do exactly that. GitList, the self-described &#8220;elegant and modern git repository viewer&#8221; adds a simple web interface for [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>Wouldn&#8217;t it be cool if you could host your own private GitHub, for browsing your local repositories or remote ones you host on your own server? Well, there&#8217;s a new PHP application in town that lets you do exactly that. <a href="http://gitlist.org/">GitList</a>, the self-described &#8220;elegant and modern git repository viewer&#8221; adds a simple web interface for your repositories, allowing you to browse commits and code. It&#8217;s still in its infancy, but it has the basics.</p>
<p style="text-align: center;"><a href="http://gitlist.org/"><img style=' display: block; margin-right: auto; margin-left: auto;'  class="aligncenter size-full wp-image-4777 imgborder" title="GitList: Commits" src="//www.webmaster-source.com/wp-content/uploads/2012/07/gitlist-commits.jpg" alt="" width="600" height="191" /></a></p>
<p>Setup was a little bit of a hassle at first, due to some dependency issues with the development version I was trying to install. I would definitely recommend downloading the stable version <a href="http://gitlist.org/">from GitList.org</a>. The <a href="https://github.com/klaussilveira/gitlist#installing">installation instructions </a>are simple enough, though the script seems to prefer having its own domain or subdomain. (GitList doesn&#8217;t use absolute URLs, and there is no documented configuration option to set a base directory other than the domain root.)</p>
<p>Once you get it up and running, it&#8217;s a convenient way to view commits. I&#8217;d probably be using it regularly if I wasn&#8217;t already hosting my private repositories on <a href="https://bitbucket.org/">BitBucket</a>.</p>
<p style="text-align: center;"><img style=' display: block; margin-right: auto; margin-left: auto;'  class="aligncenter size-full wp-image-4778 imgborder" title="GitList: Diff" src="//www.webmaster-source.com/wp-content/uploads/2012/07/gitlist-diff.jpg" alt="" width="600" height="323" /></p>
]]></content:encoded>
			<wfw:commentRss>https://www.webmaster-source.com/2012/08/14/gitlist-view-your-git-repositories-on-the-web/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Try Git: Learn Git in 15 Minutes with an Interactive Tutorial</title>
		<link>https://www.webmaster-source.com/2012/07/31/try-git-learn-git-in-15-minutes-with-an-interactive-tutorial/</link>
		<comments>https://www.webmaster-source.com/2012/07/31/try-git-learn-git-in-15-minutes-with-an-interactive-tutorial/#comments</comments>
		<pubDate>Tue, 31 Jul 2012 11:31:23 +0000</pubDate>
		<dc:creator><![CDATA[Matt]]></dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Git]]></category>
		<category><![CDATA[GitHub]]></category>
		<category><![CDATA[version control]]></category>

		<guid isPermaLink="false">http://www.webmaster-source.com/?p=4768</guid>
		<description><![CDATA[Want to learn about Git and GitHub? It can save you hours of frustration by versioning your code and making it very easy to roll it back to an early date, or even create temporary branches where you can make major changes, and only merge them into the main code base once you&#8217;re sure nothing [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>Want to learn about Git and GitHub? It can save you hours of frustration by versioning your code and making it very easy to roll it back to an early date, or even create temporary branches where you can make major changes, and only merge them into the main code base once you&#8217;re sure nothing will break.</p>
<p>Despite its usefulness, however, the initial learning curve puts off some people. It can be a little difficult to wrap your head around if you&#8217;re not already familiar with the concept of version control.</p>
<p>That&#8217;s where <a href="http://try.github.com/">Try Git</a> comes in. It aims to teach you the basics of Git with an interactive tutorial that features an in-browser command prompt. The tutorial walks you through different commands, and helps you see how everything works.</p>
<p style="text-align: center;"><a href="http://try.github.com/"><img style=' display: block; margin-right: auto; margin-left: auto;'  class="aligncenter size-full wp-image-4769 imgborder" title="Try Git" src="//www.webmaster-source.com/wp-content/uploads/2012/07/trygithub.jpg" alt="" width="600" height="305" /></a></p>
<p>If you&#8217;re not using Git yet, check it out! And keep in mind that there are <a href="http://www.webmaster-source.com/2012/01/11/alternatives-to-github/">alternatives to GitHub</a> if you don&#8217;t want to host your code publicly. You can use Git locally, on your own server, or a service like <a href="https://bitbucket.org/">BitBucket</a> that doesn&#8217;t charge for private repositories.</p>
]]></content:encoded>
			<wfw:commentRss>https://www.webmaster-source.com/2012/07/31/try-git-learn-git-in-15-minutes-with-an-interactive-tutorial/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Git: The Simple Guide</title>
		<link>https://www.webmaster-source.com/2012/01/19/git-the-simple-guide/</link>
		<comments>https://www.webmaster-source.com/2012/01/19/git-the-simple-guide/#comments</comments>
		<pubDate>Thu, 19 Jan 2012 11:10:58 +0000</pubDate>
		<dc:creator><![CDATA[Matt]]></dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Git]]></category>
		<category><![CDATA[version control]]></category>

		<guid isPermaLink="false">http://www.webmaster-source.com/?p=4491</guid>
		<description><![CDATA[Have you been trying to wrap your head around Git, the version control software that everyone is talking about? It works a little differently than tools like Subversion, so you&#8217;ll have to unlearn some habits if you&#8217;re familiar with other version control packages. A fancy new one-page website has been circulating Twitter and Reddit of [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>Have you been trying to wrap your head around Git, the version control software that everyone is talking about? It works a little differently than tools like Subversion, so you&#8217;ll have to unlearn some habits if you&#8217;re familiar with other version control packages.</p>
<p>A fancy new one-page website has been circulating Twitter and Reddit of late, serving as an easy into to Git. <a href="http://rogerdudler.github.com/git-guide/">Git: The Simple Guide</a> helps you install the software, create a repository on your local computer or check out an existing remote one, and start using Git.</p>
<p><a href="http://rogerdudler.github.com/git-guide/"><img style=' display: block; margin-right: auto; margin-left: auto;'  class="aligncenter size-full wp-image-4492 imgborder" title="Git: The Simple Guide" src="//www.webmaster-source.com/wp-content/uploads/2012/01/git-the-simple-guide.png" alt="" width="560" height="205" /></a></p>
<p>It&#8217;s a good tutorial, and the design looks great. I like the differently-colored segments with the large text and rounded styling on the <code>&lt;code&gt;</code> elements. (The page is actually hosted on <a href="http://pages.github.com/">GitHub Pages</a>, which seems fitting, given the subject.)</p>
]]></content:encoded>
			<wfw:commentRss>https://www.webmaster-source.com/2012/01/19/git-the-simple-guide/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Alternatives to GitHub</title>
		<link>https://www.webmaster-source.com/2012/01/11/alternatives-to-github/</link>
		<comments>https://www.webmaster-source.com/2012/01/11/alternatives-to-github/#comments</comments>
		<pubDate>Wed, 11 Jan 2012 11:42:45 +0000</pubDate>
		<dc:creator><![CDATA[Matt]]></dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Featured]]></category>
		<category><![CDATA[Git]]></category>
		<category><![CDATA[GitHub]]></category>
		<category><![CDATA[Hosting]]></category>
		<category><![CDATA[version control]]></category>

		<guid isPermaLink="false">http://www.webmaster-source.com/?p=4480</guid>
		<description><![CDATA[GitHub is great for open source projects, but the lack of free private repositories can be limiting for projects that you would rather not be shared with the entire world. While it does make sense to pay for a tool if you use it extensively for commercial purposes, you may not be ready to if [&#8230;]]]></description>
				<content:encoded><![CDATA[<p><a href="https://github.com/">GitHub</a> is great for open source projects, but the lack of free private repositories can be limiting for projects that you would rather not be shared with the entire world.</p>
<p>While it does make sense to pay for a tool if you use it extensively for commercial purposes, you may not be ready to if you&#8217;re an indie developer just beginning a project that won&#8217;t hit the shelves for awhile. Also, if you&#8217;re using it for versioning and deploying websites, you may not want to have all of your source be public.</p>
<p>GitHub&#8217;s business model is primarily the sale of <a href="https://github.com/plans">premium accounts</a> with varying numbers of allowed private repositories, starting at $7/month for five private repositories and up to one collaborator. It&#8217;s not a bad deal at all, as GitHub is by and large open source projects, but you may still want to find a better offer. Fortunately, there are a couple of solid competitors.</p>
<h3>BitBucket</h3>
<p><a href="https://bitbucket.org/"><img style=' float: right; padding: 4px; margin: 0 0 2px 7px;'  class="alignright size-full wp-image-4481" title="BitBucket" src="//www.webmaster-source.com/wp-content/uploads/2012/01/bitbucket.png" alt="" width="140" height="42" />BitBucket</a> is very much like GitHub, functionally. It has the same sort of social collaboration tools, and most of the same features. But that&#8217;s where the differences end. Their <a href="https://bitbucket.org/plans">pricing scheme</a> is to give you all of the repositories you could possibly want, both public and private, while charging to add extra collaborators to your private repositories. You get five for free, and can upgrade to ten for $10/month, twenty-five for $20/month, etc.. Oh, and they support both Git and Mercurial.</p>
<p>I&#8217;ve been using BitBucket lately for some of my projects, and it&#8217;s been great so far.</p>
<h3>Beanstalk</h3>
<p><a href="http://beanstalkapp.com/"><img style=' float: right; padding: 4px; margin: 0 0 2px 7px;'  class="alignright size-full wp-image-4482 imgborder" title="Beanstalk" src="//www.webmaster-source.com/wp-content/uploads/2012/01/beanstalkapp.png" alt="" width="191" height="65" />Beanstalk</a> only does private repositories, offering plans limited by disk space and the number of repositories, as well as the number of authorized users. Aside from their 100MB single-repository trial plan, their offerings start at $15/month for 3GB of space, 10 repositories and 5 users. One of their unique selling points is their integration with tools like Basecamp and Lighthouse. They also have quite a few corporate customers.</p>
]]></content:encoded>
			<wfw:commentRss>https://www.webmaster-source.com/2012/01/11/alternatives-to-github/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>So I Finally Figured Out Why Everyone Likes Git Repositories so Much&#8230;</title>
		<link>https://www.webmaster-source.com/2011/05/30/so-i-finally-figured-out-why-everyone-likes-git-repositories-so-much/</link>
		<comments>https://www.webmaster-source.com/2011/05/30/so-i-finally-figured-out-why-everyone-likes-git-repositories-so-much/#comments</comments>
		<pubDate>Mon, 30 May 2011 11:15:29 +0000</pubDate>
		<dc:creator><![CDATA[Matt]]></dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Git]]></category>
		<category><![CDATA[SVN]]></category>
		<category><![CDATA[version control]]></category>

		<guid isPermaLink="false">http://www.webmaster-source.com/?p=4038</guid>
		<description><![CDATA[Until recently, I didn&#8217;t really use version control software all that much. I primarily used SVN for a few WordPress plugins, as WordPress maintains a free repository on their SVN server for each plugin a developer submits. While I found it interesting, I didn&#8217;t really see the need to use version control for other projects&#8230;especially [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>Until recently, I didn&#8217;t really use <a href="http://en.wikipedia.org/wiki/Version_control">version control</a> software all that much. I primarily used SVN for a few WordPress plugins, as WordPress maintains a free repository on their SVN server for each plugin a developer submits. While I found it interesting, I didn&#8217;t really see the need to use version control for other projects&#8230;especially since that would require setting up a server or paying for someone else to host it.</p>
<p>After seeing the six thousandth post/comment/tweet raving about <a href="http://git-scm.com/">Git</a>, another version control system, I decided to finally give it a closer look. The lightbulb finally clicked on. I now know what&#8217;s so special about Git.</p>
<p>Git, unlike, SVN is distributed. You can version your code entirely on your computer, only pushing to a server when you&#8217;re ready&#8230;if you&#8217;re using a remote server at all. When you commit changes, it&#8217;s still just updating the revision records on your local computer; you have to use a separate command to push the changes to the remote repository. This means if you&#8217;re working alone, without other contributors, you can version files without needing a special server hosting your code, although you lose the convenient off-site backup. This is great for small projects.</p>
<p>Then you have the <a href="https://github.com/">Github</a> service, with it&#8217;s magical socially-networked code repositories. Suppose you have an improvement upon an open source project hosted on Github. You just click a button to &#8220;fork&#8221; it, creating a new repository under your account with a copy of the original&#8217;s contents. You then pull the files down to create a working copy on your system, make your changes, and push them back to your Github repository. If the developers maintaining they original project like your changes, they can merge the changes in your repository back into the main one. That concept amazes me.</p>
<p>I think I&#8217;m starting to see why people rave about Git so much. I&#8217;ve been aware of it for awhile now, but the concepts didn&#8217;t quite &#8220;click&#8221; until recently.</p>
]]></content:encoded>
			<wfw:commentRss>https://www.webmaster-source.com/2011/05/30/so-i-finally-figured-out-why-everyone-likes-git-repositories-so-much/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Version Control with Git</title>
		<link>https://www.webmaster-source.com/2009/11/03/version-control-with-git/</link>
		<comments>https://www.webmaster-source.com/2009/11/03/version-control-with-git/#comments</comments>
		<pubDate>Tue, 03 Nov 2009 11:17:52 +0000</pubDate>
		<dc:creator><![CDATA[Matt]]></dc:creator>
				<category><![CDATA[Services and Tools]]></category>
		<category><![CDATA[Git]]></category>
		<category><![CDATA[SVN]]></category>
		<category><![CDATA[version control]]></category>

		<guid isPermaLink="false">http://www.webmaster-source.com/?p=2693</guid>
		<description><![CDATA[There&#8217;s an interesting tutorial up on Net.Tuts+ that caught my attention: Easy Version Control with Git. Git seems like a powerful tool, and one I&#8217;d definitely like to look into in the future. It seems like it can do a bit more than SVN, as WhyGitIsBetterThanX.com happily points out, and may even be easier once [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>There&#8217;s an interesting tutorial up on Net.Tuts+ that caught my attention: <a href="http://net.tutsplus.com/tutorials/other/easy-version-control-with-git/">Easy Version Control with Git</a>.</p>
<p>Git seems like a powerful tool, and one I&#8217;d definitely like to look into in the future. It seems like it can do a bit more than SVN, as <a href="http://net.tutsplus.com/tutorials/other/easy-version-control-with-git/">WhyGitIsBetterThanX.com</a> happily points out, and may even be easier once you get used to it.</p>
<blockquote><p><a href="http://git-scm.com/">Git</a> is a open-source code managemen tool; it was created by Linus Torvalds when he was building the Linux kernel. Because of those roots, it needed to be really fast; that it is, and easy to get the hang of as well. Git allows you to work on your code with the peace of mind that everything you do is reversible. It makes it easy to experiment with new ideas in a project and not worry about breaking anything.</p></blockquote>
<p>Version control systems are great for anybody doing serious coding work, or design even. You could keep your blog&#8217;s theme in a repository, for example, so when you make changes to it you can roll them back if things break or you just want to revert back. You would be able to store the files remotely on a Git server, work on them locally (in your <a href="http://www.wampserver.com/en/">WAMP</a>/<a href="http://www.mamp.info/en/mamp/index.html">MAMP</a> server), and when you want to make you changes live you could just checkout the files to your production server.</p>
]]></content:encoded>
			<wfw:commentRss>https://www.webmaster-source.com/2009/11/03/version-control-with-git/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!--
Performance optimized by W3 Total Cache. Learn more: https://www.boldgrid.com/w3-total-cache/


Served from: www.webmaster-source.com @ 2026-04-29 11:44:12 by W3 Total Cache
-->