title: How to export variables from ssh session within git bash (for Windows) after exiting ssh?
body: <p>Can I export variables from ssh session within git bash (for Windows) after exiting ssh?</p>
  <p>What I want to do is something like this.</p>
  <ol>
  <li>Execute git bash for Windows.</li>
  <li>Execute ssh.</li>
  </ol>
  <pre><code>$ ssh root@192.168.xx.xx
  </code></pre>
  <ol start="3">
  <li>Set some value(s) to variable(s).</li>
  </ol>
  <pre><code>root@localhost:~# A=1
  root@localhost:~# echo $A
  1
  </code></pre>
  <ol start="4">
  <li>Exit ssh.</li>
  </ol>
  <pre><code>root@localhost:~# exit
  logout
  Connection to 192.168.xx.xx closed.
  </code></pre>
  <ol start="5">
  <li>Use the value I set in step 3 on git bash.</li>
  </ol>
  <ul>
  <li>desired result</li>
  </ul>
  <pre><code>$ echo $A
  1
  </code></pre>
  <ul>
  <li>actual result</li>
  </ul>
  <pre><code>$ echo $A
   
  </code></pre>
  <p>Is there any way to achieve this?</p>