Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked

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

Replies are listed 'Best First'.
Re: What is the minimal GIT setup?
by MidLifeXis (Monsignor) 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.


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


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 (Hermit) 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 "Your Name Comes Here" $ git config --global 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 +-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


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

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

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1021106]
Approved by Intrepid
Eily notes also
[hippo]: So if you don't drink as much milk and not as often you are said to drink less milk on fewer days. Confusing, eh?
[Eily]: same as many/much, few/little
[Discipulus]: so my 'less' usage sounded not so correct? 'fewer' was more appropriate? i take a note too
Discipulus $ENV{PAGER}='fewer '
[Corion]: Discipulus: Hahahaa! ;)
[Corion]: This would be a great April fools joke, since it certainly makes sense to show fewer pages on screen :)

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2018-01-23 09:12 GMT
Find Nodes?
    Voting Booth?
    How did you see in the new year?

    Results (242 votes). Check out past polls.