diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..54520d1 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +*.todo +.DS_Store +*.jpg +*.jpeg diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..10537e1 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,6 @@ +FROM ubuntu:18.04 + +RUN apt update +RUN apt install vim nano git -y +ENV TERM=xterm-256color +CMD ["bash", "-l"] diff --git a/README.md b/README.md index 5fc2b58..9e40715 100644 --- a/README.md +++ b/README.md @@ -1 +1,50 @@ -# git-essentials +# Git Essentials / Git For Everybody +Visit [gitforeverybody.com](https://gitforeverybody.com/) for free tutorials and the full course. + +> This is a course to teach you how to use everyday git. + + +## Contributing +Welcome to my example Git Essentials repo! If you're here from the course, you have a few options: + +1. Clone this repo to download all the code you see here (but you can't make changes and overwrite my code) +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. +3. Open a GitHub issue! Feel free to open an issue and explore. +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. + +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. + +## Where to get this course: +- [x] [Git for Everybody.com](https://gitforeverybody.com/git-essentials/) +- [x] [Git Essentials on Skillshare.com](https://skl.sh/2viPzB9) +- [x] [Git Essentials on Udemy.com](https://www.udemy.com/course/git-and-github-tutorial/?referralCode=91132F334DCD0CCAA250) + +## Docker (advanced devs only) +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: + +```bash +git clone git@github.com:KalobTaulien/git-essentials.git +cd git-esentials +docker build -t git . +docker run -itd --hostname "gitforeverybody.com" --name "gitforeverybody.com" git +docker container ls -a +docker exec -it bash + +# Once inside your Docker container, run these commands: +apt update +apt install vim nano git +export PS1="\[$(tput setaf 6)\]kalob\[$(tput setaf 2)\]@\[$(tput setaf 3)\]gitforeverybody.com: \[$(tput sgr0)\]" +export TERM=xterm-256color + +# 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. +``` + +## Contibutors +If you're opening a pull request against this repo, you should put your name (and website, optional) in the list below! + +* Kalob Taulien [(website)](https://gitforeverybody.com/) +* _Insert your name and website here_ + +___ + +Course created by Kalob Taulien. diff --git a/bad-commit-message.txt b/bad-commit-message.txt new file mode 100644 index 0000000..e69de29 diff --git a/merge-conflict.txt b/merge-conflict.txt new file mode 100644 index 0000000..a2d05ed --- /dev/null +++ b/merge-conflict.txt @@ -0,0 +1,5 @@ +line 1 by github +line 2 by github +line three by github (edited locally) +line 4 by github +line 5 by github diff --git a/new-branch-file.txt b/new-branch-file.txt index 9400ead..f44d50b 100644 --- a/new-branch-file.txt +++ b/new-branch-file.txt @@ -1 +1 @@ -New branch file only shows up in the new branch +New branch file shows up in master and new-branch diff --git a/new-file.txt b/new-file.txt new file mode 100644 index 0000000..00a5d20 --- /dev/null +++ b/new-file.txt @@ -0,0 +1 @@ +Created a new file in this fork! diff --git a/not-empty-file.md b/not-empty-file.md new file mode 100644 index 0000000..8de781b --- /dev/null +++ b/not-empty-file.md @@ -0,0 +1,3 @@ +# This is not an empty file + +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. diff --git a/rebase-conflict.txt b/rebase-conflict.txt new file mode 100644 index 0000000..226738a --- /dev/null +++ b/rebase-conflict.txt @@ -0,0 +1,6 @@ +line 1 by github +line 2 by github +line three by github +line 4 by github +line five by github +(not from github this is from local) diff --git a/rebase-file.txt b/rebase-file.txt new file mode 100644 index 0000000..e69de29 diff --git a/timewarp.txt b/timewarp.txt new file mode 100644 index 0000000..e69de29