Using GIT

I am fed up of having to look up how to make my git repos and upload them, so I am making this page. The man page is here….

Loading Files into a Github Repo

  1. Use the web interface @ to make an empty repo.
  2. On the development system, issue a git clone command, documented here …. You will need the repo file name from the web page.
  3. On the development system, copy the files to be included into the folder created by the git clone command and make that folder current. i.e. cd $newly_created_folder and then  perform the following commands which are also explained in more detail here…..


$     git add .                                    
$     git config --global ""
$     git config --global "John Doe"
$     git commit -m "Initial Version"
$     git remote -v || git remote add origin ${REPO_URL} 
$     git push origin master

  1. $ git add .  copies the files to the local copy of the repo
  2. $ git config --global ""  which partly establishes identity of author
  3. $ git config --global "Dave Levy"  which partly establishes identity of author
  4. $ git commit -m "Initial Version" commits the changes to the local repo
  5. $ git remote -v || git remote add origin ${REPO_URL}  tests if the remote repo is set and sets it if not
  6. $ git push origin master  moves the files to the remote repo, will require login credentials.

The man page deals with environment variables.

Related Posts

  • Disqus This is page contains complex html i.e. javascript, the page must only be edited as […]
  • git & github I finally got a git account. Most people, more recently seem to be there and the […]
  • EXIF and MacOS X I have listened to Stop 43, and the British Journal of Photography I have read what Tim […]
  • Gdrive & Linux My original article in 2015 pointed at the fanclub's grive, this ceased to work on my […]
  • Snipsnap and the ‘html’ macro One of the add on features contributed  by the community to the snipsnap project was an […]

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.