RasmussenLab / git-tutorial

VS Code on Binder

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Git Tutorial using

VS Code on Binder
VS Code on Binder, because sometimes you need a real editor.

PyPI Install with conda

Start:

  • lab: Binder
  • vscode: Binder

Explore

You will need to setup your git email and user-name (replace with yours in case you want to commit something, otherwise use copy-paste)

git config --global user.email "you@example.com"
git config --global user.name "Your Name"

could be added to local config using git config user...

Steps

  • create a folder with an empty repository (default examples)
  • git init in console to initialize repo
  • setup user.name and user.email
  • create files, stage them and see what files are created in .git/objects
  • commit files and check .git/objects
  • create branches and checkout .git/refs and git/branches folder
  • look at git/HEAD (maybe git/ORIG_HEAD if it exists)

try to create your own fork, and try to lauch it on mybinder

Links

Inspect git objects

git log --format=raw
git cat-file -p <hash> # pretty print
git cat-file -t <hash> # type

# the binary object can also be inspected using different tools,
# which might make it easier to navigate to certain blobs:
cat .git/objects/<2c>/<38c> | zlib-flate -uncompress

Note

Should be Run the Python Tsunami notebooks on binder. ?urlpath=vscode/?folder Go directly to Python Tsunami repository in

  • VSCode Binder
  • JupyterLab Binder
  • Jupyter Notebook Binder

About

VS Code on Binder

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Python 83.6%Language:Shell 16.4%