-
Notifications
You must be signed in to change notification settings - Fork 0
/
feed.xml
86 lines (57 loc) · 7.68 KB
/
feed.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" ><generator uri="https://jekyllrb.com/" version="3.6.2">Jekyll</generator><link href="https://walter76.github.io/feed.xml" rel="self" type="application/atom+xml" /><link href="https://walter76.github.io/" rel="alternate" type="text/html" /><updated>2018-05-21T23:09:59+02:00</updated><id>https://walter76.github.io/</id><title type="html">The Chaotic Heap</title><subtitle>A unstructured collection of posts around software development and architecture.</subtitle><author><name>Walter</name><email>[email protected]</email></author><entry><title type="html">How to Set-up a Vagrant box for Jekyll</title><link href="https://walter76.github.io/vagrant/jekyll/vagrant-box-for-jekyll/" rel="alternate" type="text/html" title="How to Set-up a Vagrant box for Jekyll" /><published>2018-03-21T07:24:01+01:00</published><updated>2018-03-21T07:24:01+01:00</updated><id>https://walter76.github.io/vagrant/jekyll/vagrant-box-for-jekyll</id><content type="html" xml:base="https://walter76.github.io/vagrant/jekyll/vagrant-box-for-jekyll/"><h1 id="prerequisites">Prerequisites</h1>
<p>First I had to install the most up-to-date versions of <a href="https://www.virtualbox.org/">Virtual Box</a> and
<a href="https://www.vagrantup.com/">Vagrant</a> on my Laptop. Virtual Box is used by Vagrant for the Virtual Machines. In addition
also a version of PowerShell &gt; 2 is needed. If you are using Windows 10, you should already have it installed. As my
Laptop still runs on Windows 7, I had to install the <a href="https://docs.microsoft.com/en-us/powershell/wmf/5.1/install-configure">Windows Management Framework v5.1</a>. After some reboots</p>
<p>vagrant init jadesystems/rails5
vagrant up
vagrant ssh</p>
<p>vagrant suspend
vagrant halt
vagrant destroy</p>
<p>sudo apt-get update
sudo apt-get upgrade</p>
<p>Select /dev/sda1 /boot for grub?!</p>
<p>sudo gem install bundler
sudo apt-get install libffi-dev
sudo apt-get install libcurl4-openssl-dev
https://kvz.io/blog/2013/01/16/vagrant-tip-keep-virtualbox-guest-additions-in-sync/
https://stackoverflow.com/questions/23840098/empty-reply-from-server-cant-connect-to-vagrant-vm-w-port-forwarding</p>
<p>bundle exec jekyll serve –force_polling –port 8090 –host 0.0.0.0</p></content><author><name>Walter</name><email>[email protected]</email></author><summary type="html">Prerequisites First I had to install the most up-to-date versions of Virtual Box and Vagrant on my Laptop. Virtual Box is used by Vagrant for the Virtual Machines. In addition also a version of PowerShell &gt; 2 is needed. If you are using Windows 10, you should already have it installed. As my Laptop still runs on Windows 7, I had to install the Windows Management Framework v5.1. After some reboots vagrant init jadesystems/rails5 vagrant up vagrant ssh vagrant suspend vagrant halt vagrant destroy sudo apt-get update sudo apt-get upgrade Select /dev/sda1 /boot for grub?! sudo gem install bundler sudo apt-get install libffi-dev sudo apt-get install libcurl4-openssl-dev https://kvz.io/blog/2013/01/16/vagrant-tip-keep-virtualbox-guest-additions-in-sync/ https://stackoverflow.com/questions/23840098/empty-reply-from-server-cant-connect-to-vagrant-vm-w-port-forwarding bundle exec jekyll serve –force_polling –port 8090 –host 0.0.0.0</summary></entry><entry><title type="html">How to Work on a Branch with GitHub</title><link href="https://walter76.github.io/git/how-to-work-on-a-branch-with-github/" rel="alternate" type="text/html" title="How to Work on a Branch with GitHub" /><published>2018-02-20T23:09:01+01:00</published><updated>2018-02-20T23:09:01+01:00</updated><id>https://walter76.github.io/git/how-to-work-on-a-branch-with-github</id><content type="html" xml:base="https://walter76.github.io/git/how-to-work-on-a-branch-with-github/"><p>In this post I will show how to create a branch if your repository is on GitHub
and what you have to do to synchronize it with your local repository.</p>
<h2 id="create-the-remote-branch-on-github">Create the Remote Branch on GitHub</h2>
<p>First you need to create a remote branch on GitHub. This branch is afterwards
used to synchronize with your local repository.</p>
<p>Go to GitHub and open the repository that you would like to create the branch.
In the first tab you can switch between branches and there is also the place
where you can create a new one.</p>
<p><img src="https://walter76.github.io/assets/github-create-branch.png" alt="Create a Branch on GitHub" /></p>
<p>Enter a branch name in the field, e.g. some-fix, and hit enter. The branch will
be created from your current branch.</p>
<h2 id="create-a-branch-in-your-local-repository">Create a Branch in Your Local Repository</h2>
<p>Now you need a branch in your local repository. This branch is created by
<code class="highlighter-rouge">git checkout -b some-fix</code>.</p>
<p><img src="https://walter76.github.io/assets/git-create-branch-locally.png" alt="Create a Branch in Local Repository" /></p>
<h2 id="set-the-remote-branch-as-upstream-branch">Set the Remote Branch as Upstream Branch</h2>
<p>Now we need to tell git that we would like to synchronize this branch with the
branch on GitHub. This is done by setting the remote branch as upstream branch.
You can do this with <code class="highlighter-rouge">git branch --set-upstream-to=origin/source source</code>. You
can now use git pull/push to synchronize your work.</p>
<p>You can also pull/push the remote branch with <code class="highlighter-rouge">git pull origin source</code></p>
<h2 id="switch-branches">Switch Branches</h2>
<p>You can switch branches locally with <code class="highlighter-rouge">git checkout &lt;branch&gt;</code>. If you want to
switch to a new branch and create it automatically use
<code class="highlighter-rouge">git checkout -b &lt;branch&gt;</code>.</p>
<h2 id="list-branches">List Branches</h2>
<p>You can list all your branches with <code class="highlighter-rouge">git branch -v</code>.</p>
<h2 id="create-branches">Create Branches</h2>
<p>Branches are created with <code class="highlighter-rouge">git branch &lt;branch&gt;</code>.</p>
<h2 id="delete-branches">Delete Branches</h2>
<p>After you have finished working on that branch it is time to remove it. You can
do this with <code class="highlighter-rouge">git branch -d &lt;branch&gt;</code>.</p>
<h2 id="merge-branches">Merge Branches</h2>
<p>Before deleting a branch you might want to merge your work to another branch,
e.g. master. You can do the following:</p>
<div class="highlighter-rouge"><div class="highlight"><pre class="highlight"><code>git checkout master
git merge some-fix
</code></pre></div></div></content><author><name>Walter</name><email>[email protected]</email></author><summary type="html">In this post I will show how to create a branch if your repository is on GitHub and what you have to do to synchronize it with your local repository.</summary></entry></feed>