Git Product home page Git Product logo

2023-11-14-python's Introduction

Livecode repository

For learners

This repository keeps track of the code being written by the instructor

  • refresh the page regularly to see the current changes
  • use it to catch up or as a reference when running into errors
  • the folder structure is a good starting point when creating a project yourself

For instructors

Use gitautopush to automatically push your livecode to this repository.

Prerequisites

  • Python and pip installed
  • Git installed
  • GitHub account added to the repository as a Contributor

Installation and usage

  • in a first terminal window git clone this repository to create a tracked working directory
  • if you already cloned this repository a while ago, git pull to avoid conflicts
  • in a second terminal window, install gitautopush with pip install gitautopush
  • in this second terminal window, start observing the folder with the command: gitautopush --sleep <INT> /path/to/my/repo/folder. <INT> is the amount of time (in seconds) between attempts to synchronise the code in the local repository with the remote
  • save the files in the working directory often and regularly (or automatically)
  • double check in the second terminal window if gitautopush automatically pushes your changes to the repository: in case of failure, the errors git throws should be inside the message of gitautopush
  • once you finish your lesson, close gitautopush in the second terminal window with Ctrl+C or close the terminal window altogether

Troubleshooting

  • github requires SSH authentication
  • if you are being asked to enter your passphrase every time git tries to push changes, launch the ssh agent automatically, follow these instructions; note that in certain cases your profile or bashrc file is not read when starting up the shell, in this case add test -f ~/.profile && . ~/.profile or test -f ~/.bashrc && . ~/.bashrc respectively to your .bash_profile.
  • ValueError: A git status command didn't work, are you sure this is a git repository?
    • It might be occuring when there are already some changes to be staged once you launch gitautopush. First, run gitautopush, then start creating files or making changes to the existing ones.
    • Another thing to try is to first commit and push one file manually to the repository, once you have done that and no changes are staged run gitautopush

2023-11-14-python's People

Contributors

tmunker avatar rrlacroix2 avatar paulmaxus avatar

Watchers

Maurice Vanderfeesten avatar Michiel Cock avatar  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.