Skip to content

This is the official repository of the LSU Language, Environment and NeuroDevelopment Lab

License

Notifications You must be signed in to change notification settings

juliagoolia28/LEND_lab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

71 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LEND_lab

This is the official repository of the LSU Language, Environment and NeuroDevelopment Lab directed by Dr. Julie M. Schneider (@juliagoolia28)

Getting started with Git in 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

Forking and Cloning

  1. Next you will need to Fork the current repo into your own repo
  2. In your own forked version, set up your local clone in local terminal (you only need to do this once for the entire 'Lend_lab' repo)
  • cd into your local directory where you would like to save the lab repo.
  • Then type:
git clone https://github.com/yourname/LEND_lab.git
  • Now you will have a local folder called LEND_lab on the computer.
  • Then type:
cd ./LEND_lab
git remote add upstream https://github.com/juliagoolia28/LEND_lab.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/yourname/LEND_lab.git (fetch)
origin https://github.com/yourname/LEND_lab.git (push)
upstream https://github.com/juliagoolia28/LEND_lab.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

About

This is the official repository of the LSU Language, Environment and NeuroDevelopment Lab

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published