-
Create your personal account for GitHub https://github.com/join
-
Fork edgarcosta/hilbertmodularforms
- go to https://github.com/edgarcosta/hilbertmodularforms/
- click the fork button
-
If you don't have a pair of public/private RSA keys, create one, by doing:
ssh-keygen. Now copy the content of your public key~/.ssh/id_rsa.pub, you can access the content of the file by doingcat ~/.ssh/id_rsa.pub, and add it tohttps://github.com/settings/keys. -
Open a terminal on your computer, and go to a folder where you would like to store your personal copy of
hilbertmodularformsFor example:cd secretprojets/ -
Clone your repository to your computer by doing:
git clone git@github.com:YOURUSERNAME/hilbertmodularforms.git NAMEDESIRED
where you replace YOURUSERNAME and NAMEDESIRED.
NAMEDESIRED is the name of the folder where it will store your personal copy of hilbertmodularforms
-
Change directory to the directory you just created, e.g,
cd NAMEDESIRED -
You also want to be able to access the changes of other people on the main repository, for that we need to manually add it, by doing:
git remote add upstream git@github.com:edgarcosta/hilbertmodularforms.git
- Download the latest changes of the main repository to your computer with
git fetch upstream master - Change the code on your directory to reflect the latest changes with
git checkout upstream/master - Now that you are up to date, you should create a branch which will track the new changes, with
git checkout -b NEWBRANCHNAME
- Do
git statusto see what files you have edited - Do
git add FILENAMEfor each file you would like submit changes - Commit your changes on your computer with
git commit
alternatively, if you want to skip the editor, you can also do:
git commit -m "fixed something really important"
- Push your changes to the internet
git push
if you have never pushed this branch, then it will complain and tell you what to do
- Create a PR
- Merge the PR, you can also ask someone to quickly look into it
You can switch between branches by doing:
git checkout BRANCHNAME
Imagine that someone has been working hard, and just merged some code that you need to the main repository. You can merge this changes, with your current branch by doing
git pull upstream master
- Edit the
README.mdandLICENSEfile and add your name