User Tools

Site Tools


vcs:git

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
vcs:git [2021/01/19 10:09] kauffmanvcs:git [2021/01/19 10:12] kauffman
Line 34: Line 34:
 === Example === === Example ===
 <code> <code>
-kauffman@hades:~$ ssh kauffman3@linux.cs.uchicago.edu +laptop:~$ ssh kauffman3@linux.cs.uchicago.edu
-The authenticity of host 'linux.cs.uchicago.edu (128.135.164.173)' can't be established. +
-ECDSA key fingerprint is SHA256:W8rbGZbIv57nNbbtCKF7FKMoqR0Wblw6lWzrh93HiyQ. +
-Are you sure you want to continue connecting (yes/no/[fingerprint])? yes +
-Warning: Permanently added 'linux.cs.uchicago.edu' (ECDSA) to the list of known hosts. +
-kauffman3@linux.cs.uchicago.edu's password:  +
- +
-This system runs Ubuntu 20.04 +
- +
-For long running jobs please consider using the Slurm cluster `Peanut`. +
- +
-  https://howto.cs.uchicago.edu/slurm:peanut +
- +
-Questions: +
-  techstaff@cs.uchicago.edu +
-  Discord: https://discord.gg/ZVjX8Gv +
- +
-- Techstaff+
 kauffman3@linux3:~$ mkdir myproject.git kauffman3@linux3:~$ mkdir myproject.git
 kauffman3@linux3:~$ cd myproject.git/ kauffman3@linux3:~$ cd myproject.git/
Line 57: Line 40:
 Initialized empty shared Git repository in /home/kauffman3/gitbare/myproject.git/ Initialized empty shared Git repository in /home/kauffman3/gitbare/myproject.git/
 kauffman3@linux3:~/gitbare/myproject.git$ cd kauffman3@linux3:~/gitbare/myproject.git$ cd
 +</code>
 +
 +== Clone from inside your CS home ==
 +<code>
 kauffman3@linux3:~$ git clone kauffman3@linux.cs.uchicago.edu:~/gitbare/myproject.git kauffman3@linux3:~$ git clone kauffman3@linux.cs.uchicago.edu:~/gitbare/myproject.git
 Cloning into 'myproject'... Cloning into 'myproject'...
Line 81: Line 68:
 </code> </code>
  
 +== Clone from your laptop or elsewhere ==
  
 +<code>
 +laptop:~$ git clone kauffman3@linux.cs.uchicago.edu:~/myproject.git
 +Cloning into 'myproject'...
 +kauffman3@linux.cs.uchicago.edu's password: 
 +remote: Enumerating objects: 3, done.
 +remote: Counting objects: 100% (3/3), done.
 +remote: Total 3 (delta 0), reused 0 (delta 0)
 +Receiving objects: 100% (3/3), done.
 +
 +laptop:~$ ls -l myproject/
 +total 0
 +-rw-rw-r-- 1 kauffman kauffman 0 Jan 19 10:11 README
 +</code>
  
  
/var/lib/dokuwiki/data/pages/vcs/git.txt · Last modified: 2021/09/22 17:19 by ctopper

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki