LNCD

Table of Contents

  • LNCD Home
  • Administration
  • Notebooks
  • Journal Club Presentations
  • Publications
  • Current Projects
  • Completed Projects
  • Current Grants
  • Datasets by Project
  • Brain ROIs and Measures
  • ️Tools And Methods
  • Big Data
  • RA Homepage
  • Recent Changes
  • Maintenance
  • Site Map
  • Random Page
LNCD
Admin » Github setup

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
tools:github [2025/10/16 10:52] – [ssh keys] willtools:github [2025/12/12 15:33] (current) – [Authentication] martineza10
Line 5: Line 5:
 Github setup includes Github setup includes
   - [[#new_repo|creating]] or [[#existing_repo|finding]] an existing remote github repository url   - [[#new_repo|creating]] or [[#existing_repo|finding]] an existing remote github repository url
-  - syncing that with your files (on your computer, on rhea, on PSC, etc);+    * use **ssh** url like ''git@github.com:group/repo'' ( instead of ''%%https://github.com/group/repo%%'')  
 +    * avoid conflicting histories: <wrap important>dont generate a readme when creating a new repo</wrap>  
 +  - syncing that with your files (on your computer, on rhea, on PSC, etc) 
 +    * <wrap tip> be sure you ''cd'' to the right directory before running ''git'' commands</wrap>
   - [[#ssh_keys|authenticating]] with github for ''git push'' permissions.    - [[#ssh_keys|authenticating]] with github for ''git push'' permissions. 
     * <wrap tip>ssh keys recommended</wrap>     * <wrap tip>ssh keys recommended</wrap>
-    * <wrap alert> ''sshkey-gen'' only once per user@server. don't run if existing ''~/.ssh/id*.pub''</wrap>+    * <wrap alert> ''ssh-keygen'' only once per user@server. don't run if existing ''~/.ssh/id*.pub''</wrap>
  
 ===== New Repo ===== ===== New Repo =====
Line 29: Line 32:
   * Clone the copied url like <code bash>git clone git@github.com/$USER/$REPO</code>   * Clone the copied url like <code bash>git clone git@github.com/$USER/$REPO</code>
 ===== Authentication ===== ===== Authentication =====
-For ''git push'' to  github, you'll need some way to confirm your credentials. Authentication can happen with <wrap tip>**ssh keys** (recommended)</wrap> or an **app password**+For ''git push'' to  github, you'll need some way to confirm your credentials. Authentication can happen with <wrap tip>**ssh keys** (recommended)</wrap> or an **app password**   
 + 
 +when using ssh keys (recommended) use ''git@github.com:group/repo'' (repo url) to use ssh-key based authentication -- on the terminal you can  
 +switch from https to ssh using ''vim .git/config'' 
 + 
 +{{.:pasted:20251212-153335.png}}
 ==== ssh keys ==== ==== ssh keys ====