Code Monkey home page Code Monkey logo

watchmal_analysis's Introduction

WatChMaL_analysis

Example repository for usage of the WatChMaL repository

Working With Submodules

See for reference: https://git-scm.com/book/en/v2/Git-Tools-Submodules

Key commands

Cloning a repo with submodules

To clone the repo with submodules included:

$ git clone --recurse-submodules https://github.com/Whisky-Jack/WatChMaL_analysis.git

FOR NOW JUST TREAT THE SUBMODULE AS ITS OWN REPO, AND CD TO THE SUBMODULE DIRECTORY TO PUSH/PULL CHANGES

Fetching updates from remote

To fetch remote update the submodules you can:

  1. Enter the submodule directory and run fetch then merge. e.g.
$ cd WatChMaL
$ git fetch
$ git merge origin/master
  1. You can get Git to fetch updates for the submodule for you using
$ git submodule update --remote WatChMaL

Pushing local changes to a submodule

To push local changes to a submodule you first need to add to stage the changes to the submodule in the main repo. You can then:

  1. Push local changes to the repo and check whether there are unpushed submodule changes using:
$ git push --recurse-submodules=check

This will warn you if any local submodule changes haven't been pushed, and give you instructions for how to push these changes. This should be done at a minimum to make sure you aren't pushing a version of the repo relying on unpushed local changes to the submodule.

  1. Push changes to the repo and try to automatically push changes to the submodule using:
$ git push --recurse-submodules=on-demand
  1. As before you can enter the submodule directory and use normal git commands:
$ cd WatChMaL
$ git push

watchmal_analysis's People

Contributors

whisky-jack avatar hi-chem246 avatar

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.