Friday, June 13, 2014

GitHub Notes to ... myself

Downloading github repo into a local folder
git clone https://github.com/vladpetyuk/MSnID.git
Assuming I am using RStudio, start a new project from existing directory. In this example that would be MSnID.

How to update your fork, so it catches up with original?
It is discussed here Basically issue a pull request where is the base is your own repository and head is the original that your forked from. Note that the default is the opposite: base - the original, head - you. You have to switch it using the drop-down menu.

An example of handling gist from GitHub
  • create directory where the gists are going to be stored
  • git clone https://gist.github.com/8607045.git
  • the new directory 8607045 will be created
  • cd 8607045
  • git add .
  • edit the file
  • to check what is going on: git status
  • git commit -m "your commit message"
  • git push


Pushing local repo to GitHub
Described here. Basically in my case, when git already exists. I need to

  • Create a new repository on GitHub. Do not initialize the new repository with anything yet! (in example below - simulant.LCMS)
  • git remote add origin https://github.com/vladpetyuk/simulant.LCMS.git
  • git remote -v
  • git push -u origin master


  • Greyed out push and pull in Rstudio
    fix explained here

    Checking font availability on Mac   fc-list : family | grep "Fira Code"   or   system_profiler -json SPFontsDataType | grep \...