├── Chapter01 └── ch01.txt ├── Chapter02 └── ch02.txt ├── Chapter04 └── ch04.txt ├── Chapter05 └── ch05.txt ├── Chapter06 └── ch06.txt ├── LICENSE └── README.md /Chapter01/ch01.txt: -------------------------------------------------------------------------------- 1 | mkdir -p ~/github-essentials 2 | cd ~/github-essentials 3 | 4 | echo "# github-essentials-v2" >> README.md 5 | git init 6 | git add README.md 7 | git commit -m "first commit" 8 | git remote add origin git@github.com:/.git 9 | git push -u origin master 10 | 11 | git checkout -b add_description 12 | 13 | echo "\n## Description\n\nGitHub for dummies" >> README.md 14 | git add README.md 15 | git commit -m "Add second level header to README file" 16 | git push origin add_description 17 | 18 | git checkout master 19 | git branch new_feature 20 | git push origin new_feature 21 | -------------------------------------------------------------------------------- /Chapter02/ch02.txt: -------------------------------------------------------------------------------- 1 | git checkout master 2 | echo "0.5.1" > version.txt 3 | git add version.txt 4 | git commit -m "Release 0.5.1" 5 | git push origin master 6 | 7 | git checkout master 8 | git checkout -b develop 9 | echo "0.6rc1" > version.txt 10 | git add version.txt 11 | git commit -m "0.6 pre-release" 12 | git push origin develop 13 | 14 | git clone https://github.com/axilleas/github-essentials-v2.wiki.git 15 | cd github-essentials-v2.wiki 16 | gollum 17 | -------------------------------------------------------------------------------- /Chapter04/ch04.txt: -------------------------------------------------------------------------------- 1 | git checkout -b add-gitignore 2 | echo 'password' > .gitignore 3 | git add .gitignore 4 | git commit -m 'Add .gitignore' 5 | git push origin add-gitignore 6 | 7 | git checkout update-readme 8 | sed -i 's/Test change/For more info, check the wiki/' README.md # replace text 9 | git add README.md 10 | git commit -m 'Correct line in README.md' 11 | git push origin update-readme 12 | 13 | git checkout master 14 | git checkout -b fix-issue-2 15 | 16 | git commit -m 'Demo example of closing issues. Closes #2' 17 | git push origin fix-issue-2 18 | -------------------------------------------------------------------------------- /Chapter05/ch05.txt: -------------------------------------------------------------------------------- 1 | git clone git@github.com:username/username.github.io.git 2 | cd username.github.io 3 | echo 'Welcome to my first page!' > index.html 4 | git add index.html 5 | git commit -m 'Add the first webpage' 6 | git push -u origin master 7 | 8 | git checkout -b gh-pages 9 | echo 'Welcome to my first project page!' > index.html 10 | git add index.html 11 | git commit -m 'Add index.html page' 12 | git push origin gh-pages 13 | 14 | jekyll new website 15 | cd website 16 | ls -la 17 | jekyll serve --watch 18 | 19 | git init 20 | git add . 21 | git commit -m 'Init commit using Jekyll' 22 | git remote add origin git@github.com:username/username.github.io.git 23 | git push origin master 24 | 25 | git checkout master 26 | git pull origin master 27 | cp _posts/2018-06-02-welcome-to-jekyll.markdown _posts/2018-06-02-testing-github-metadata-with-jekyll.markdown 28 | git add . 29 | git commit -m "Add new post" 30 | git push origin master 31 | -------------------------------------------------------------------------------- /Chapter06/ch06.txt: -------------------------------------------------------------------------------- 1 | git clone https://github.com/diaspora/diaspora 2 | du -sh diaspora 3 | rm -rf diaspora/.git 4 | du -sh diaspora 5 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2018 Packt 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # GitHub-Essentials-Second-Edition 2 | 3 | Book Name 4 | 5 | This is the code repository for [Book Name](https://www.packtpub.com/web-development/github-essentials-second-edition?utm_source=github&utm_medium=repository&utm_campaign=9781789138337), published by Packt. 6 | 7 | **Unleash the power of collaborative development workflows using GitHub** 8 | 9 | ## What is this book about? 10 | Whether you are an experienced developer or a novice, learning to work with Version Control Systems is a must in the software development world. Git is the most popular tool for that purpose, and GitHub was built around it, leveraging its powers by bringing it to the web. 11 | 12 | This book covers the following exciting features: 13 | * Create and upload repositories to your account 14 | * Create organizations and manage teams with different access levels on repositories 15 | * Use the issue tracker effectively and add context to issues with labels and milestones 16 | * Create, access, and personalize your user account and profile settings 17 | * Create GitHub pages and understand web analytics 18 | If you feel this book is for you, get your [copy](https://www.amazon.com/dp/1789138337) today! 19 | 20 | https://www.packtpub.com/ 22 | 23 | 24 | ## Instructions and Navigations 25 | All of the code is organized into folders. For example, Chapter02. 26 | 27 | The code will look like the following: 28 | ``` 29 | git checkout master 30 | echo "0.5.1" > version.txt 31 | ``` 32 | 33 | **Following is what you need for this book:** 34 | This book is for experienced or novice developers with a basic knowledge of Git. If you ever wanted to learn how big projects such as Twitter, Google, or even GitHub collaborate on code, then this book is for you. 35 | 36 | With the following software and hardware list you can run all code files present in the book (Chapter 1-15). 37 | 38 | ### Software and Hardware List 39 | 40 | | Chapter | Software required | OS required | 41 | | -------- | --------------------------------------------------| -------------------| 42 | | 1 | Git (Any version), A modern browser like Firefox | All OSes supported | 43 | | 2 | Git (Any version), A modern browser like Firefox | All OSes supported | 44 | | 3 | Git (Any version), A modern browser like Firefox | All OSes supported | 45 | | 4 | Git (Any version), A modern browser like Firefox | All OSes supported | 46 | | 5 | Git (Any version), A modern browser like Firefox | All OSes supported | 47 | | 6 | Git (Any version), A modern browser like Firefox | All OSes supported | 48 | 49 | 50 | 51 | We also provide a PDF file that has color images of the screenshots/diagrams used in this book. [Click here to download it](http://www.packtpub.com/sites/default/files/downloads/GitHubEssentialsSecondEdition_ColorImages.pdf). 52 | 53 | ### Related products 54 | * Git Version Control Cookbook [[Packt]](https://www.packtpub.com/application-development/git-version-control-cookbook?utm_source=github&utm_medium=repository&utm_campaign=9781782168454) [[Amazon]](https://www.amazon.com/dp/1782168451) 55 | 56 | * Git Essentials - Second Editiont [[Packt]](https://www.packtpub.com/application-development/git-essentials-second-edition?utm_source=github&utm_medium=repository&utm_campaign=9781787120723) [[Amazon]](https://www.amazon.com/dp/1787120724) 57 | 58 | ## Get to Know the Author 59 | **Achilleas Pipinellis** 60 | Achilleas Pipinellis is an open source enthusiast and tries to get involved in as many projects as possible. He was introduced to Linux almost 10 years ago and haven't looked back since. His distribution of choice is Arch Linux, a lightweight and flexible system that adheres to the KISS philosophy. He likes trying new technologies, especially those that require some sort of special deployment. He also enjoys writing technical guides and articles that help people learn new stuff and strongly believes that comprehensive documentation is essential to a project's growth and recognition. 61 | 62 | 63 | ## Other books by the authors 64 | * [GitHub Essentials](https://www.packtpub.com/application-development/github-essentials?utm_source=github&utm_medium=repository&utm_campaign=9781783553716) 65 | 66 | ### Suggestions and Feedback 67 | [Click here](https://docs.google.com/forms/d/e/1FAIpQLSdy7dATC6QmEL81FIUuymZ0Wy9vH1jHkvpY57OiMeKGqib_Ow/viewform) if you have any feedback or suggestions. 68 | --------------------------------------------------------------------------------