A while back I posted a mass of code and it was suggested that I post it on GitHub. After researching what a github was, I created the following cheat sheet for myself. Maybe it will help you.

Do one-time when git is installed for the first time ---------------------------------------------------- $ git config --global user.name "Your Name Comes Here" $ git config --global user.email you@yourdomain.example.com Create a new local and remote repository ---------------------------------------- Execute from the directory containing your source files $ git init creates a subdirectory and builds reposi +tory in it $ git add . add all files to repository $ git status verify staged files $ git commit commit staged files $ git remote add origin https://github.com/jmlynesjr/remote-repository +-name create remote repository $ git push -u origin master upload to remote repository Update an existing repository ----------------------------- Execute from directory containing your source files $ git add file1 add new or modified files $ git status verify files were added $ git commit commit to local repository $ git push origin master push to remote repository username password Additional Commands ------------------- $ git ls-files list all files in the +repository $ git rm filename remove a file from the + repository Documentation ------------- usr/share/doc/git-doc/user-manual.html

James

There's never enough time to do it right, but always enough time to do it over...


In reply to Re: What is the minimal GIT setup? by jmlynesjr
in thread What is the minimal GIT setup? by ShermW0829

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.