Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

What is the minimal GIT setup?

by ShermW0829 (Acolyte)
on Feb 28, 2013 at 20:11 UTC ( #1021106=perlquestion: print w/ replies, xml ) Need Help??
ShermW0829 has asked for the wisdom of the Perl Monks concerning the following question:

What is the very basic GIT setup? I am using GIT just for myself on my local host. Can I just start using GIT without doing anything? I am setting up GIT for the first time and so I searched for a tutorial online. I have not determined how to access the tutorials within the GIT file structure yet. In the web pages I am looking at they suggest using secure shell (SSH) among other things but I'm not sure I want to do that. Thank you; Sherman

Comment on What is the minimal GIT setup?
Re: What is the minimal GIT setup?
by MidLifeXis (Prior) on Feb 28, 2013 at 20:50 UTC

    Start with git help. To bring this into the realm of perl, once you have become familiar with the basics of git and are ready to start manipulating it from within Perl (or using Perl to extend it, take a look at cpan's git modules. You do not need to use perl to extend or drive git, but there are quite a few perl-based tools out there already.

    --MidLifeXis

Re: What is the minimal GIT setup?
by davido (Archbishop) on Feb 28, 2013 at 20:54 UTC

    See The official Git website, which provides links for community support, as well as a link to the "Pro Git" (free) book. While many of us use Git here, the question as posted isn't really a Perl-related question, and isn't "seeking Perl wisdom."


    Dave

Re: What is the minimal GIT setup? (practical howto parable try github)
by Anonymous Monk on Feb 28, 2013 at 23:16 UTC
Re: What is the minimal GIT setup?
by sundialsvc4 (Abbot) on Mar 01, 2013 at 04:56 UTC

    Probably the single biggest intellectual-hurdle that you need to overcome, with regards to git, is that there is no “centralized, authoritative ‘server’.”   Instead, “a repository is nothing-more and nothing-less than a directory.”   All of them are potentially “authoritative.”   Ordinary file-synchronization techniques are used.   The “minimal git setup” is, quite literally, your own machine.

      Thank you. I apologize for this not being related to PERL. My thinking when I asked is that since programmers accentuate using some form of version control that the subject would be within the realms of PERL programming. I am still new to this and I appreciate your input. Sherman

Re: What is the minimal GIT setup?
by jmlynesjr (Friar) on Mar 04, 2013 at 21:12 UTC

    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...

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1021106]
Approved by Intrepid
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (6)
As of 2014-12-21 19:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (107 votes), past polls