Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

Re: What is the minimal GIT setup?

by jmlynesjr (Hermit)
on Mar 04, 2013 at 21:12 UTC ( #1021710=note: print w/replies, xml ) Need Help??

in reply to What is the minimal GIT setup?

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

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1021710]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2016-10-22 20:01 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (297 votes). Check out past polls.