Skip to content
@LSU-LENDlab

LEND Lab @ LSU

"/lend_lab_img5.png"

LEND Lab at LSU

This is the official GitHub of the Language, Environment and NeuroDevelopment (LEND) Lab directed by Dr. Julie M. Schneider If you wish to make contributions to a repository, please read the following instructions.

Getting started with Git in MacOS Terminal

  1. Install Homebrew /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
  2. Install git via brew brew install git
  3. Install GitHub CLI via brew brew install gh

If you wish to work within the terminal, see git and GitHub in Terminal

Forking and Cloning

  1. To work on a repository via your own profile, you must "fork" it. Click the Fork button in the right corner to add the repository to your own profile.
  2. In your own forked version, set up your local clone in the terminal (you only need to do this once for each repo that you clone)
  • cd into your local directory where you would like to save the lab repo. (example: cd /Users/lendlab/Desktop/ will take you to the desktop.
  • Then type:
git clone https://github.com/yourusername/reponame.git
  • Now you will have a local folder called of that repository on the computer.
  • Then type:
cd ./reponame
git remote add upstream https://github.com/originalusername[the username of the parent repo]/reponame.git
git remote set-url --push upstream Oops.no.push.to.upstream
git remote -v

In the output you will see:

origin https://github.com/yourusername/reponame.git (fetch)
origin https://github.com/yourusername/reponame.git (push)
upstream https://github.com/originalusername[the username of the parent repo]/reponame.git (fetch)
upstream	Oops.no.push.to.upstream (push)

Setup Personal Access Token (PAT) to authenticate

To connect Git to Github you have to provide authentication. It will ask for a username and then password, but no longer accepts these credentials. To create a PAT follow these instructions: https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token

When logging in, enter your username and PAT for the password.

Before proceeding, remove .DS_Store files created by Macs

In your git folder type:

echo .DS_Store >> ~/.gitignore_global

git config --global core.excludesfile ~/.gitignore_global

How to Add things to Github

First be sure you are up to date with the main LEND Lab Github account:

git checkout main
git fetch upstream
git merge upstream/main
git push origin main

Now add whatever to your Git that you would like. To commit this to YOUR Github (see FAQ for ways to modify the below text):

git add new_files
git commit -m "WRITE MESSAGE HERE"
git push origin branch_name

Last step: Submit Pull Request

Working with Jupyter

To install Jupyter Notebook, following the documentation here: https://jupyter.org/install Note that if you have Python 3, this should be pip3

If Jupyter cannot be found, try using this code:

python3 -m notebook

FAQ:

Add all new files to your commit:

git add -A

Not sure which branch_name is correct? Find out which branch you are on:

git -branch

Git and GitHub in the Terminal

To create, initialize and push a repository and its accompanying files to GitHub use the following commands.

$ cd ~/.../my_folder # go to a folder
$ git init # initializes the repo to git
$ gh repo create <name> --public --add-readme # creates public repo with accompanying README.md

## Add your files manually or... ## 

$ cat > my_file.txt
Here is some text.
^D # control+D

# or

$ vim my_file.txt
i # press i (insert mode)
Here is some text
esc # press escape
:wq # writes/saves and exits vim


$ git remote add origin https://github.com/<username>/<name>.git
$ git add -A # adds all files or: git add -my_file.sh
$ git commit -m "commit message"
$ git push origin main

Popular repositories Loading

  1. presentations presentations Public

    This repository hosts different presentations affiliated with the LEND Lab.

  2. lendlab lendlab Public

    Repository for all things related to the LSU Language, Environment and NeuroDevelopment Lab run by Dr. Julie M. Schneider git: juliagoolia28

  3. sample-presentation-scripts sample-presentation-scripts Public

    Sample Presentation® Scripts

  4. .github .github Public

  5. EEG-Rhyme-Scripts EEG-Rhyme-Scripts Public

    Repo for EEG Rhyme Study

    MATLAB 1

  6. gh-tips gh-tips Public

    Beginner tips, tools and code for working with GitHub in the LEND Lab

    HTML

Repositories

Showing 8 of 8 repositories
  • EEG-Rhyme-Scripts Public

    Repo for EEG Rhyme Study

    LSU-LENDlab/EEG-Rhyme-Scripts’s past year of commit activity
    MATLAB 0 1 0 0 Updated Feb 6, 2024
  • LSU-LENDlab/DevERP-Analysis-App’s past year of commit activity
    MATLAB 0 0 0 0 Updated Dec 6, 2023
  • gh-tips Public

    Beginner tips, tools and code for working with GitHub in the LEND Lab

    LSU-LENDlab/gh-tips’s past year of commit activity
    HTML 0 MIT 0 0 0 Updated Nov 8, 2023
  • .github Public
    LSU-LENDlab/.github’s past year of commit activity
    0 0 0 0 Updated Sep 6, 2023
  • ERP-simplified Public Forked from w-decker/ERP-simplified

    Custom functions and an accompanying script that combine and automate all ERP analysis steps.

    LSU-LENDlab/ERP-simplified’s past year of commit activity
    MATLAB 0 2 0 0 Updated Jun 21, 2023
  • sample-presentation-scripts Public

    Sample Presentation® Scripts

    LSU-LENDlab/sample-presentation-scripts’s past year of commit activity
    0 0 0 0 Updated Jun 20, 2023
  • presentations Public

    This repository hosts different presentations affiliated with the LEND Lab.

    LSU-LENDlab/presentations’s past year of commit activity
    0 0 0 0 Updated Jun 20, 2023
  • lendlab Public

    Repository for all things related to the LSU Language, Environment and NeuroDevelopment Lab run by Dr. Julie M. Schneider git: juliagoolia28

    LSU-LENDlab/lendlab’s past year of commit activity
    0 GPL-3.0 0 0 0 Updated Dec 8, 2021

Top languages

Loading…

Most used topics

Loading…