This is a repository for git beginners to practise the git workflow
Contents
To check if Git is already installed type the following in your terminal:
git --version
- Linux/Unix: https://git-scm.com/download/linux
- Windows: https://git-scm.com/download/win
- Mac OS X: https://git-scm.com/download/mac
Set global name and email:
git config --global user.name "Your Name"
git config --global [email protected]
git config --list
- Write your name to the file "List_of_attendees.txt" on the existing branch "features/write_attendees“
Solution:
- Checkout the features/write_attendees branch
git checkout features/write_attendeesAdd "Your Name" to "List_of_attendees.txt"
- Stage your changes
git add List_of_attendees.txt
- Commit your changes
git commit -m "Add Your_Name to the list of attendees"
- Push your changes
- Create a new branch from main and add a directory named like you. It should contain a text file with a brief introduction of your person
Solution:
- Create the new branch features/Your_Name_attendees
git checkout -b features/Your_Name_attendeesCreate a directory named like you and add "Introduction_Your_Name.txt" which contains a brief introduction of your person
- Stage your changes
git add Introduction_Your_Name.txt
- Commit your change
git commit -m "Add short introduction of Your_Name to Attendees repository"
- Push your changes
git push --set-upstream origin features/Your_Name_attendeesCreate a PR at github
MIT License
Copyright (c) 2020 oemof developing group
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.