Skip to content

Instantly share code, notes, and snippets.

View FreddieBrown's full-sized avatar
🎯
Focusing

FreddieBrown FreddieBrown

🎯
Focusing
View GitHub Profile
@FreddieBrown
FreddieBrown / kerneltrick.ipynb
Last active May 10, 2020 12:26
KernelTrick.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

How to use Git

git init

This is a very simple command. This is used to create a repository (repo). This will be the first command you type out when using git. This is a pretty simple command and nothing else really needs to be said about it.

git add

This is the best place to start when talking about Git as it is probably the most used command I use when using Git (maybe joint with commit). add is used to prepare your changes to be saved. If you want to add all files that have been changed since to last added anything to Git, you can use: git add -A. What you are saying here is that you will want to back up all of these files sometime in the near future. You can use add to identify specific files too, like this: git add helloWorld.py. This will only add helloWorld.py. To add more files (maybe you want to only add 2 of the 3 changed files), you just write the other file names after that, like so: git add helloWorld.py nextFile.py. The next section will discuss the second most used command:

Useful MacOS commands (Catalina)

xcode-select --install

This will install all the Xcode libraries that are needed.

What changed in MacOS Catalina is that they got rid of the usr/include folder and so many compilers won't be able to find the header files they need. The correct header files are stored in another location:

Keybase proof

I hereby claim:

  • I am freddiebrown on github.
  • I am freddiebrown (https://keybase.io/freddiebrown) on keybase.
  • I have a public key ASAR47bD-mqsAZ4qSUb_eDxzb9j-Fjm4dnwB_cqbqElw4Qo

To claim this, I am signing this object: