Unix 2 Problem Set
If you have not already done so, follow Steps 1-3 in Unix: GIT for Beginners. Here is a summary of those steps, Please go to lecture for detailed steps:
- Create a GitHub Account and Click "New" to create a new repository.
- Add info about your repository
- Please see the lecture notes for more detailed steps. In summary you will be doing the following: Create a local (your machine) directory with
mkdir <dirname>, move into the new directory with
cd <dirname>and set it up as a repository with
git init. Now link it to your remote repository with
git remote add.
Move any files you created in Unix_01 Problem set to your local problemset git repository.
Add all the new files in your local repository to your remote repository
git add *. You can use
git add <filename>if you only want to add one file.
git commit -m 'adding previous problem set files'
- Visit the your GitHub repository website (on github.com) and see the files from your local repository that you just pushed up to your remote repository.
If you are tired of typing your github username and password create and add an ssh key to your github account. Information can be found here on github.com. Follow the instructions for these two steps in the turorial.
Create a directory call
filesin your ProblemSets directory.
Move the file you renamed from
cancer_genes.fastato your remote repository
git add files/cancer_genes.fasta
git commit -m 'adding cancer_genes.fasta'
- Visit the your GitHub repository website (on github.com) and see the file from your local repository that you just pushed up to your remote repository.
- Using your text editor (nano is a good one to start with) create a fasta file and name it
mysequences.txt. Make sure it ends up in your problem sets files directory.
This is fasta file format:
>seqName description ATGGCGTCTTGGCCTTAAAAGCTC
mysequences.txtto your remote.
Create a directory called
fastas. (Hint: use mkdir)
Copy the fasta file that you renamed to
cancer_genes.fastato the fasta directory.
Verify that the file is within the fasta directory.
Delete the the original file that you used for copying.
Sync your remote repo with your local repo. Make sure to add each file you changed or use
git add *. Don't forget to commit and push.
Read the man page for
cpto find out how to remove and copy a directory.
Print out your history and redirect it to a file called
Open this file with your text editor and delete any lines you do not want to keep. See this google search for info on delete entire lines in nano.
Make sure all your files are synced with your remote repository.