Git Product home page Git Product logo

git-tutorial's Introduction

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 "[email protected]"
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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.