Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2024 new branch #376

Open
wants to merge 22 commits into
base: new-branch
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
*.todo
.DS_Store
*.jpg
*.jpeg
6 changes: 6 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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"]
51 changes: 50 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -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 [email protected]: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 <container_id> 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.
Empty file added bad-commit-message.txt
Empty file.
5 changes: 5 additions & 0 deletions merge-conflict.txt
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion new-branch-file.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
New branch file only shows up in the new branch
New branch file shows up in master and new-branch
3 changes: 3 additions & 0 deletions not-empty-file.md
Original file line number Diff line number Diff line change
@@ -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.
6 changes: 6 additions & 0 deletions rebase-conflict.txt
Original file line number Diff line number Diff line change
@@ -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)
Empty file added rebase-file.txt
Empty file.
Empty file added timewarp.txt
Empty file.