Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
<!doctype html>
<html class="no-js" lang="">
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>Git Hub Basics</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="apple-touch-icon" href="apple-touch-icon.png">
<!-- Place favicon.ico in the root directory -->
<link rel="stylesheet" href="css/normalize.css">
<link rel="stylesheet" href="css/main.css">
<script src="js/vendor/modernizr-2.8.3.min.js"></script>
</head>
<body>
<!--[if lt IE 8]>
<p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p>
<![endif]-->
<!-- Add your site or application content here -->
<div id="first">
<h1>How to use GitHub:The Basics.</h1>
<ol>
<h3>Starting a Repo (Repository)</h3>
<li>Go to <a href="https://github.uconn.edu/btn15001">https://github.uconn.edu/btn15001</a></li>
<li>Click on "Repositories" and create a new one.</li>
<li>Open Desktop Command Terminal (Git Bash)</li>
<li>Type: <span class="code-font">git status</span> </li>
<li>Type: <span class="code-font">git cd</span> until you are at the desired folder. (<span class="code-font">cd .. </span>"to go back one folder")
<li>Now type: <span class="code-font">git clone</span> https://github.uconn.edu/your-netid/repository-name” (note: this requires that you have created a new repository on http://github.uconn.edu)</li>
<li>cd into that folder (it may need to be moved to a different location)</li>
<li>Copy and paste a new "Boilerplate" project into that folder</li>
<li>Go back to terminal and type: git status</li>
<li>Type: <span class="code-font">git add . </span>(Don't forget the dot)</li>
<li>Type:<span class="code-font"> git commit -a -m "My first commit"</span></li>
<li>Type:<span class="code-font"> git push -u origin master</span></li>
<li>Enter passwords</li>
</ol>
</div>
<div id="second">
<div id="branches">
<ol>
<h3>Creating a Branch</h3>
<li>Type:<span class="code-font"> git status</span></li>
<li>Type:<span class="code-font"> git checkout -b gh-pages</span></li>
<li>Type:<span class="code-font"> git status</span></li>
<li>Type:<span class="code-font"> git add .</span></li>
<li>Type:<span class="code-font"> git commit -m "First Branch Upload"</span></li>
<li>Type:<span class="code-font"> git push origin gh-pages</span></li>
<li> View settings on GitHub page and click "green" url</li>
</ol>
</div>
</div>
<div id="third">
<div id="branches1">
<ol>
<h3>Updating a branch</h3>
<li>Type:<span class="code-font"> git checkout gh-pages</span></li>
<li>Type:<span class="code-font"> git pull origin master</span></li>
<li>Type:<span class="code-font"> git push origin gh-pages</span></li>
<li>Then once done:<span class="code-font"> git checkout master</span></li>
</ol>
</div>
</div>
<script src="https://code.jquery.com/jquery-1.12.0.min.js"></script>
<script>window.jQuery || document.write('<script src="js/vendor/jquery-1.12.0.min.js"><\/script>')</script>
<script src="js/plugins.js"></script>
<script src="js/main.js"></script>
<!-- Google Analytics: change UA-XXXXX-X to be your site's ID. -->
<script>
(function(b,o,i,l,e,r){b.GoogleAnalyticsObject=l;b[l]||(b[l]=
function(){(b[l].q=b[l].q||[]).push(arguments)});b[l].l=+new Date;
e=o.createElement(i);r=o.getElementsByTagName(i)[0];
e.src='https://www.google-analytics.com/analytics.js';
r.parentNode.insertBefore(e,r)}(window,document,'script','ga'));
ga('create','UA-XXXXX-X','auto');ga('send','pageview');
</script>
</body>
</html>