├── timewarp.txt ├── rebase-file.txt ├── bad-commit-message.txt ├── .gitignore ├── new-branch-file.txt ├── first-push.txt ├── Dockerfile ├── merge-conflict.txt ├── rebase-conflict.txt ├── not-empty-file.md └── README.md /timewarp.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /rebase-file.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /bad-commit-message.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *.todo 2 | .DS_Store 3 | *.jpg 4 | *.jpeg 5 | -------------------------------------------------------------------------------- /new-branch-file.txt: -------------------------------------------------------------------------------- 1 | New branch file shows up in master and new-branch 2 | -------------------------------------------------------------------------------- /first-push.txt: -------------------------------------------------------------------------------- 1 | This is the first push 2 | 3 | This is the second edit to this file 4 | -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- 1 | FROM ubuntu:18.04 2 | 3 | RUN apt update 4 | RUN apt install vim nano git -y 5 | ENV TERM=xterm-256color 6 | CMD ["bash", "-l"] 7 | -------------------------------------------------------------------------------- /merge-conflict.txt: -------------------------------------------------------------------------------- 1 | line 1 by github 2 | line 2 by github 3 | line three by github (edited locally) 4 | line 4 by github 5 | line 5 by github 6 | -------------------------------------------------------------------------------- /rebase-conflict.txt: -------------------------------------------------------------------------------- 1 | line 1 by github 2 | line 2 by github 3 | line three by github 4 | line 4 by github 5 | line five by github 6 | (not from github this is from local) 7 | -------------------------------------------------------------------------------- /not-empty-file.md: -------------------------------------------------------------------------------- 1 | # This is not an empty file 2 | 3 | Lorem ipsum dolor sit amet, consectetur adipisicing elit. Eveniet numquam asperiores, dolore! Animi, veritatis maiores. Vel magni dolorum, vitae eum ut culpa unde autem blanditiis voluptatibus tenetur deleniti suscipit officiis non molestias nam reiciendis. Corporis cupiditate non sapiente inventore, illum eum aperiam, veniam numquam adipisci nisi. Necessitatibus, sint aliquid iusto. 4 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Git Essentials / Git For Everybody 2 | Visit [gitforeverybody.com](https://gitforeverybody.com/) for free tutorials and the full course. 3 | 4 | > This is a course to teach you how to use everyday git. 5 | 6 | 7 | ## Contributing 8 | Welcome to my example Git Essentials repo! If you're here from the course, you have a few options: 9 | 10 | 1. Clone this repo to download all the code you see here (but you can't make changes and overwrite my code) 11 | 2. Fork this repo to add all this code to your GitHub profile _and then_ clone this repository from your account. Then you can make file changes and `git push` them to your forked version of this repo. 12 | 3. Open a GitHub issue! Feel free to open an issue and explore. 13 | 4. Once you've forked this repo and made some changes, you can open a pull request to merge your code into my repo here. Feel free to experiment with that until you feel confident opening a pull request. 14 | 15 | If you decide to open a pull request and add some work to this repo, I ask that you keep it simple. You can add a new file or update this README.md file with your name in the contributors list at the bottom, but please don't make changes to the original files from the course. 16 | 17 | ## Where to get this course: 18 | - [x] [Git for Everybody.com](https://gitforeverybody.com/git-essentials/) 19 | - [x] [Git Essentials on Skillshare.com](https://skl.sh/2viPzB9) 20 | - [x] [Git Essentials on Udemy.com](https://www.udemy.com/course/git-and-github-tutorial/?referralCode=91132F334DCD0CCAA250) 21 | 22 | ## Docker (advanced devs only) 23 | If you want a completely new and clean environment to start learning git form scratch, you can use a Docker container. That's what I did for this course. Below are the steps to reproduce the same setup I used in the Git Essentials course: 24 | 25 | ```bash 26 | git clone git@github.com:KalobTaulien/git-essentials.git 27 | cd git-esentials 28 | docker build -t git . 29 | docker run -itd --hostname "gitforeverybody.com" --name "gitforeverybody.com" git 30 | docker container ls -a 31 | docker exec -it bash 32 | 33 | # Once inside your Docker container, run these commands: 34 | apt update 35 | apt install vim nano git 36 | export PS1="\[$(tput setaf 6)\]kalob\[$(tput setaf 2)\]@\[$(tput setaf 3)\]gitforeverybody.com: \[$(tput sgr0)\]" 37 | export TERM=xterm-256color 38 | 39 | # Now you can run git commands as if you were on a brand new computer. You'll need to generate an SSH key and add it to GitHub. 40 | ``` 41 | 42 | ## Contibutors 43 | If you're opening a pull request against this repo, you should put your name (and website, optional) in the list below! 44 | 45 | * Kalob Taulien [(website)](https://gitforeverybody.com/) 46 | * _Insert your name and website here_ 47 | 48 | ___ 49 | 50 | Course created by Kalob Taulien. 51 | --------------------------------------------------------------------------------