Participating : set of commands to deal with git - OpenGreekAndLatin/First1KGreek GitHub Wiki
# Cloning
- Go to https://github.com/OpenGreekAndLatin/First1KGreek
- Click and Clone or Download (Green button)
- In the popup, make sure it's written "Clone with Https" (Otherwise click "Use https" in that same popup)
- Copy the address which is written
- Go to a shell
- Go to the directory you want to work in with "cd directoryname"
- Do
git clone $address
where $address is the the address you copied
# Forking
- Go to https://github.com/OpenGreekAndLatin/First1KGreek
- Click on fork
- Select your own account and click on it
- Click on "clone or download" green button
- In the popup, make sure it's written "Clone with Https" (Otherwise click "Use https" in that same popup)
- Copy the address which is written
- Go to the shell
- Go the directory where you clone
- Make sure you are in the right repository by typing "git status" (should say "On branch master")
- Write
git remote add mine $address
where $address is the address you just copied
Fixing an issue
- Go to GitHub and choose one issue to work on. Assign this issue to yourself or write a comment stating this.
- Go to your shell
- Go to the directory where you cloned your repository
- Do
git checkout master
- Do
git pull
- Do
git branch issue-$number
where $number is the number of your issue - Do
git checkout issue-$number
where $number is the number of your issue - Fix your file
- Do
git add -A
to add your changes to the git history - Do
git commit -m "Fixed #$issue : ($filename) $message"
where $issue is the number of your issue, $filename the file that is concerned, $message the thing you did (Example : "Capitains compliancy, added refsDecl, fixed epidoc") - Do
git push -u mine issue-$number
where $number is the number of your issue - Go to https://github.com/OpenGreekAndLatin/First1KGreek
If you have a green button "Pull Request"
- Do create pull request
- Wait for someone to valid !
If you do not
- Click on "New pull request" grey button
- Click on compare across forks
- Change headfork to yourUsername/First1KGreek
- Change the compare to issue-$numer where $number is the number of the issue
- Do create pull request
- Wait for someone to valid !