Having a GitHub account and knowing the basics of committing and pushing changes are mandatory for this academy.
- Sign up for a GitHub account if you don't already have one.
- Checking for existing SSH keys
- Generating a new SSH key and adding it to the ssh-agent
- Adding a new SSH key to your GitHub account
- Testing your SSH connection
The workspace directory/repository is where you will place everything you are working on, solve exercises, make changes to files, etc. In this academy that is a requirement as it is how you will make your work available to us.
- Log into GitHub
- Create a new private GitHub repository called batch6-workspace, see
Creating a new repository.
IMPORTANT The repo MUST be named batchX-workspace where X is the current batch number!
If you name it anything else, you will be unable to submit any of your work!
- You need to explicitly select Private - This is your work and nobody else's. You will be graded based upon the merits of what you are able to do here so this should not be open to the world while you are working on it.
- Initialize with a README. This is mostly just so that you don't initialize an empty repo.
- Add a Python
.gitignore
. This step is insanely important. If you don't do this, you may end up checking things into the repo that make it un-gradeable by our grading system. ADD THE.gitignore
PLEASE!!!! <--- 4 *!
isn't enough
Since the repository is private you will have to explicitly give access so that our grading system can fetch the repository. To do this you will be adding a deploy key to the repository, which we provide to you in our Portal.
- Head on to the Portal
- Log in with your GitHub account
- Go to your profile and
copy the deploy key (including the
ssh-rsa
part) - Go back to the repository you have just created
- Go to
Settings > Deploy Keys
- Click "Add deploy key" (no need to grant Write Access)
- Give it a recognizable name like "grader" and paste the key from the
Portal
-
Open a Terminal or Git Bash, the next steps are on this terminal
-
Clone your
<username>/batchX-workspace
repositoryIf you're not sure where to clone the repository in, you can create a
~/projects
folder, and clone it there. Don't forget to replace theX
with your corresponding batch number. For example, for batch 6, your repository should bebatch6-workspace
. -
Clone the students repository If you have your ssh keys set up as instructed:
git clone [email protected]:<username>/batchX-workspace.git
else
git clone https://github.com/<username>/batchX-workspace.git
You will be cloning the batchX-students repository.
for batch6 this will be
https://github.com/LDSSA/batch6-students
All of the learning material you need will be made available on this repo as the academy progresses.
- Open a Terminal or Git Bash, the next steps are on this terminal
- Clone the students repository batch6-students
git clone https://github.com/LDSSA/batch6-students.git
Or if you have your ssh keys set up:
git clone [email protected]:LDSSA/batch6-students.git